I follow the Web (JavaScript) Client Tutorial to create Google Cloud endpoints using the maven approach, and I have successfully deployed it on my local host and application server. The problem is that when I try to send 0 or 1 to the welcome form, I do not receive any data. And it works on localhost, but not on a deployed server. I debugged it using Firefox and it looks like it cannot generate an API and extract data from it
GET https://myapp-id.appspot.com/_ah/api/discovery/v1/apis/helloworld/v1/rpc [HTTP/1.1 404 Not Found 96ms]
and when I click the button, it returns me:
TypeError: gapi.client.helloworld is undefined
So, I tried to open the link, but it opened the page error to me: Not Found
But when I run it on the local host, everything is fine, and the link works, and a large JSON message is displayed on it. I tried with the tictactoe sample also where everything is configured, so I just changed the identifiers, but when I come to this part again, I get the same error. Does anyone know what the reason is?
And also, when I go to the API, it shows “Download” and nothing loads.
source
share