Viktor Bykadorov
asked this on September 08, 2011 13:47
Hi everyone, i have created a new layer, but when it comes to testing, i always getting an error:
oauth disabled
POI fwd url = http://layar.magnav.ru?lang=en&countryCode=AF&lon=40.215309...
Response received from provider, validating...
response code : 200
Traceback (most recent call last): File "/var/www/layar.com/app/api/handlers/api_layer/mainproxy.py", line 327, in get_pois raise RuntimeError("Invalid JSON response") RuntimeError: Invalid JSON response
Error: No content available
My server returns this on a request above:
{"layer":"magnavtest","hotspots":[{"id":"1","anchor":{"geolocation":{"lat":"47.7085189","lon":"40.2153093"}},"text":{"title":"qweqwe","description":"lolidunno","footnote":"qweqwe"}}],"errorCode":0,"errorString":"ok"}
I have read all the wiki back and forth, and it seems like a correct response for me. Tel me, please, what am i doing wrong?
Comments latest first
Hello,
[ I used the tutorial simple.php and got this error: Message: layerName parameter is not passed in GetPOI request.]. I assume you get this error when your copied link to your API Endpoint URL, try to open "Test" page for your layer and copy full url from Console log. It should look like this: http://yourapiendpointurl/layer.json?lang=en&countryCode=AF&....
I used the tutorial simple.php and got this error:
Message: layerName parameter is not passed in GetPOI request.
Anyone have any idea how to fix the problem?
Thanks!
It seems this morning everything worked again! Very strange! Had 100% uptime during the period the empty layars occured! All my porpoise 1.1 layars were on and off for almost a week! Just worked on them this afternoon, and now they are down again!?!
any idears?
Hello,
This error occurs occasionally, while we didn't make any changes on the server side. Please check this issue with your hosting provider's tech support. Check your server up time and so on.
Regards,
again:
http://postimage.org/image/2gmamobqc/
tnx for replying quickly!
included a example: sometimes it worked and then they go! Problem is that none of the time they show in the layar browser! for these layars i am running porpoise 1.1b!
I have no problem with my vision layars!
here a screenshot: a few minutes in between!
[url=http://postimage.org/image/2gmamobqc/][img]http://s4.postimage.org/...]
Thanks for looking into it!
Hello,
I can't reproduce this issue, screenshot with POIs for one of your layers in attachements. If you will experience the same issues please create new ticket.
Regards,
Hi, it seems all my test layars stopt working last week and give me the exact same error:
can not think of anything i changed! It was working fine. yesterday the layars even worked on the test page (giving 0 results).
Now the give the same error as above!
NOTE: using Porpoise 1.1b
someone any idears?
I'm still not there but did something wrong with my password (stupid) :-( So I start all over again...........hopefully will succeed this time.
Already tried a (simpel) password...no luck
Got an answer!
Hello,
You will receive the same error even if you will simply paste your API Endpoint URL into browser string: http://www.ardesign.mobi/mylayer/mylayer.php . You should solve this issue on your side (try to check access permissions to the file).
Regards,
Still have to figure out what goes wrong??
I get the following message with the mylayer file when the attributes are 775:
Message: layerName parameter is not passed in GetPOI request.SQLSTATE[28000] [1045] Access denied for user 'asmara'@'localhost' (using password: YES)
and the following when the attributes are 777;
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@ardesign.mobi and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any ideas??
Thanks, Theo
tWell, at least we can say for sure that problems are on our side. I got an answer for my question, my JSON code was valid, so my problem is somewhere else...
And your problem is obviously with mysql connection. Try to change mysql user's password and use a new one - who knows, maybe there was a typo in it. Database on another server may be not accessible from other hosts, many hosters do that due to security purposes.
I opened a private question myself........no answer yet,
If I follow my url I get
SQLSTATE[28000] [1045] Access denied for user 'xxxxxxx'@'localhost' (using password: YES)
Looks like a wrong password or something, but I know for sure everything is alright, even tried a complete new database at another site,.........same result. Don't know what to do next??
Any ideas Viktor?
error log has no errors.........
No clues, everything looks normal. And what about errorlog?
This is part of the file
46.137.71.190 - - [12/Sep/2011:04:26:09 -0500] "GET /mylayer/mylayer.php?lang=en&countryCode=AF&lon=115.152769089&userId=6f85d06929d160a7c8a3cc1ab4b54b87db99f74b&version=6.0&radius=3116&lat=-8.64428643288&layerName=brandar&accuracy=100 HTTP/1.1" 200 273 "-" "Layar/test page"
46.137.71.190 - - [12/Sep/2011:04:27:21 -0500] "GET /mylayer/mylayer.php?lang=en&countryCode=AF&lon=115.151581&userId=6f85d06929d160a7c8a3cc1ab4b54b87db99f74b&version=6.0&radius=1500&lat=-8.644215&layerName=brandar&accuracy=100 HTTP/1.1" 200 273 "-" "Layar/test page"
46.137.71.190 - - [12/Sep/2011:04:27:30 -0500] "GET /mylayer/mylayer.php?lang=en&countryCode=AF&lon=115.151581&userId=6f85d06929d160a7c8a3cc1ab4b54b87db99f74b&version=6.0&radius=1500&lat=-8.644215&layerName=brandar&accuracy=100 HTTP/1.1" 200 273 "-" "Layar/test page"
46.137.71.190 - - [12/Sep/2011:04:29:56 -0500] "GET /mylayer/mylayer.php?lang=en&countryCode=AF&lon=4.887339&userId=6f85d06929d160a7c8a3cc1ab4b54b87db99f74b&version=6.0&radius=1500&lat=52.377544&layerName=brandar&accuracy=100 HTTP/1.1" 200 264 "-" "Layar/test page"
46.137.71.190 - - [12/Sep/2011:04:30:21 -0500] "GET /mylayer/mylayer.php?lang=en&countryCode=AF&lon=115.152769089&userId=6f85d06929d160a7c8a3cc1ab4b54b87db99f74b&version=6.0&radius=2879&lat=-8.64428643288&layerName=brandar&accuracy=100 HTTP/1.1" 200 264 "-" "Layar/test page"
I haven't checked yet on my server, but if you'll show me that part of logs where layar appears, i'll probably can say is the problem with your hosting or something else.
in my raw access logs Layar/test page does appear........?
My server is hosted by justhost.com ,?? don't know if that could be the problem??
I have made a private question, but it still wasn't answered. I have only one sane answer at the moment: maybe their servers cannot access our servers, or getting some kind of server error... Server error looks realistic, if parser gets an error 500, it will definetely say "Invalid JSON response"; but on my hosting i have no access to apache's access logs, so i'll try to run my script on VDS to check that out.
I got the same error, what goes wrong?