Page 1 of 1

Server Code for Evernote

Posted: Fri Aug 01, 2014 3:54 pm
by Beej

Previously, Server Code test was returning "502 Bad Gateway" message. Now, just getting a general error to contact support. Firefox console, though, still says, "502 Bad Gateway". However, Chrome says:

XMLHttpRequest cannot load https://api.appery.io/rest/1/code/63f...&. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://appery.io' is therefore not allowed access.

The Evernote SDK may not be fully compatible with Server Code. Still, the error seems unusual.


Server Code for Evernote

Posted: Fri Aug 01, 2014 5:10 pm
by Kateryna Grynko

Hi,

Enable proxy for this service please:
http://devcenter.appery.io/documentat...


Server Code for Evernote

Posted: Fri Aug 01, 2014 5:24 pm
by Beej

With proxy, from the service test:

{
"status":"502 Bad Gateway",
"url":"https://api.appery.io/rest/1/code/63f...;,
"response":"<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor=\"white\">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>"
}


Server Code for Evernote

Posted: Fri Aug 01, 2014 7:10 pm
by Kateryna Grynko

Hi,

Please post a screenshot of full service response (Network tab in desktop browser devtools).


Server Code for Evernote

Posted: Fri Aug 01, 2014 8:41 pm
by Beej

In the editor and at Server Code screenshots. Note that both tests usually return "502 Bad Gateway", but occasionally they will return a "404 Not Found" for the appery.io/.../debug/exec path.

Image

Image


Server Code for Evernote

Posted: Mon Aug 04, 2014 1:20 pm
by Maryna Brodina

Hello!

Could you clarify what is new Thrift in your code?


Server Code for Evernote

Posted: Mon Aug 04, 2014 10:12 pm
by Beej

Thrift is the object of the Evernote SDK. Their documentation doesn't seem to give explicit requirements for its SDK. It may need Node.js. I am still trying to get an answer....


Server Code for Evernote

Posted: Tue Aug 05, 2014 9:11 am
by Maryna Brodina

Hello!

There is no node.js. on server code, just JS, Unfortunately there is no way to use sdk for node.js. It is only possible to add and use JS.