google-code-export / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
1 stars 3 forks source link

API explorer fails to load #154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Deploy my application
2. Wait until the instance has loaded and the logs show todoapi saved
3. Launch the api explorer

What is the expected output? What do you see instead?
Expected output

Expected output is the API Explorer updated with my api and list of service 
methods.
Actual output is API Explorer with a loading... message next to the search box. 
 The menu links at left are navigable, but no content ever loads and the 
loading message doesn't go away.  No error is generated.

What version of the product are you using? On what operating system?
OS: Linux Mint 14, tested in Firefox (with noscript, all but doubleclick.net 
allowed) and in Chrome (no addons).

Please provide any additional information below.

Instance Logs on deploy
 2014-04-11 10:04:47.952 200    12KB 8444ms 
/_ah/spi/BackendService.getApiConfigs
    10.1.0.41 - - [11/Apr/2014:07:04:47 -0700] "POST /_ah/spi/BackendService.getApiConfigs HTTP/1.1" 200 12640 - - "1-dot-premium-axis-526.appspot.com" ms=8444 cpu_ms=4603 cpm_usd=0.001413 loading_request=1 instance=00c61b117c7e44d3c49efd06aedc6b78596313 app_engine_release=1.9.2
    I 10:04:47.949
This request caused a new process to be started for your application, and thus 
caused your application code to be loaded for the first time. This request may 
thus take longer and use more CPU than a typical request for your application.
I 2014-04-11 10:04:49.149 204      0B 68ms   
/_ah/spi/BackendService.logMessages
    10.1.0.41 - - [11/Apr/2014:07:04:49 -0700] "POST /_ah/spi/BackendService.logMessages HTTP/1.1" 204 0 - - "1-dot-premium-axis-526.appspot.com" ms=68 cpu_ms=82 instance=00c61b117c7e44d3c49efd06aedc6b78596313 app_engine_release=1.9.2
    I 10:04:49.146
Endpoints: https://1-dot-premium-axis-526.appspot.com/_ah/spi/todoapi@v1 Saved

No further logs or requests are generated by attempting to load API explorer.  
No errors or warnings were raised during compile, build client, or deploy.  
Built and deployed in Eclipse with google plugin.  Thsi behavior started after 
I converted from multiple endpoints to a multi-class API. 

Original issue reported on code.google.com by samurain...@gmail.com on 11 Apr 2014 at 2:13

Attachments:

GoogleCodeExporter commented 9 years ago
Test methods that should be GET by the api descriptor, but return 405 Error: 
HTTP method GET is not supported by this URL
https://1-dot-premium-axis-526.appspot.com/_ah/spi/todoapi@v1/getUsers?id=1
https://1-dot-premium-axis-526.appspot.com/_ah/spi/todoapi@v1/listUsers?limit=10
0

I'm sure now that the failure of API Explorer to load or show an error is one 
issue, and that there is another issue with the deployment of my app.

Original comment by samurain...@gmail.com on 11 Apr 2014 at 3:23

GoogleCodeExporter commented 9 years ago
nathaniel@blackbox /tmp/todoapi $ curl -X GET -d "{}" -H "Content-Type: 
application/json" http://localhost:8888/_ah/spi/todoapi@v1/listUsers
<html><head><title>Error 405 HTTP method GET is not supported by this 
URL</title></head>
<body><h2>Error 405 HTTP method GET is not supported by this URL</h2></body>

nathaniel@blackbox /tmp/todoapi $ curl -X POST -d "{}" -H "Content-Type: 
application/json" http://localhost:8888/_ah/spi/todoapi@v1/listUsers
{"error_message":"missing /{Service}.{method}"}

Original comment by samurain...@gmail.com on 11 Apr 2014 at 3:41

GoogleCodeExporter commented 9 years ago
API explorer works on the local dev server.  on the same code is deploye to app 
engine, API explorer demonstrates the reported issue, loading... never finishes

Original comment by samurain...@gmail.com on 11 Apr 2014 at 4:34