>
> Nicolas,

Thank you for your kind reply. The problem is resolved as well :). 

Cheers,
Daniel
On Wednesday, August 21, 2019 at 3:50:11 PM UTC-7, Nicolas (Google Cloud 
Platform Support) wrote:
>
> Hi Daniel,
> Thanks for opening this thread, however as you said this channel is not 
> intended for technical questions. I see that you now have some people 
> helping you on your StackOverflow 
> <https://stackoverflow.com/questions/57566044/querying-mysql-database-through-an-app-written-in-go-and-react-on-google-app-eng>
>  
> and I hope you find the solution to your issue as soon as possible. 
>
> On Tuesday, August 20, 2019 at 5:50:05 PM UTC-4, Daniel Connelly wrote:
>>
>> I apologize if I'm asking a technical question and this isn't the place 
>> for it (I have already posted to Stackoverflow, but response hasn't been 
>> active). I have a flex app I have been tinkering with for some time written 
>> in Go and React with two routes:
>>
>> Enter code here...
>> func main() {
>>   http.Handle("/", http.FileServer(http.Dir("./app/build")))
>>   http.HandleFunc("/search", searchcontract.SearchContract)
>>   http.ListenAndServe(":8080", nil)
>> }
>> The first handle starts the React App/Element up. 
>> The second handleFunc queries a database and returns the results to the 
>> react element.
>> Behavior is correct on localhost:8080.
>> What happens when I deploy the app is that the Go app never interacts 
>> with the React element appropriately. React receives a status code of '0', 
>> which I believe means that Go never sent any resposneto a requested query. 
>> I believe this is true because I tested it locally: when I start the React 
>> app up without the Go server, this is the status code React receives.
>>
>> Localhost works fine:
>>
>> [image: working.png]
>>
>>
>> App Engine doesn't query correctly (Not in this picture: when I decide to 
>> show the table, the status returned is 0):
>>
>> [image: notworking.png]
>>
>> The problem is not with my Mysql database. I know this because when I 
>> route all requests to the /seach function i receive back this:
>>
>> [image: online.png]
>>
>> Any help is appreciated!
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/64c4aa05-ede3-4d69-8d75-c91b8bf53878%40googlegroups.com.
  • [google-ap... 'Nicolas (Google Cloud Platform Support)' via Google App Engine
    • [goog... Daniel Connelly

Reply via email to