Beej
Posts: 0
Joined: Tue Jul 01, 2014 1:56 am

Server Code for Evernote

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Server Code for Evernote

Hi,

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

Beej
Posts: 0
Joined: Tue Jul 01, 2014 1:56 am

Server Code for Evernote

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>"
}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Server Code for Evernote

Hi,

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

Beej
Posts: 0
Joined: Tue Jul 01, 2014 1:56 am

Server Code for Evernote

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Server Code for Evernote

Hello!

Could you clarify what is new Thrift in your code?

Beej
Posts: 0
Joined: Tue Jul 01, 2014 1:56 am

Server Code for Evernote

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....

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Server Code for Evernote

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.

Return to “Issues”