As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I am trying to setup the Pay It Forward sample app with a slight modification to use twitter instead of facebook. When I click the Sign up button I get an Internal Server Error 500:
POST https://baas.kinvey.com/user/kid_PVUyQAskiO/?provider=twitter&step=requestToken&_=3m04ktz2cwfav2t9 500 (Internal Server Error)
All I changed in the sample code is the app key and secret and app.js line 156 to:
What is in the response body? There should be an indication of what went wrong.
A
Andreas Zoellner
said
almost 10 years ago
{"error":"BLTimeoutError","description":"The Business Logic script did not complete. Please contact support","debug":"The script was terminated due to timing constraints: took more than 2000ms to complete. Did you forget to call response.complete() or response.continue()?"}
M
Mark
said
almost 10 years ago
Since the BL script performs a request to (in your case) Twitter, it might be Twitter sometimes doesn’t respond quickly enough (i.e. within 2 seconds). In that case, the script times out.
Does this happen incidentally or very often?
A
Andreas Zoellner
said
almost 10 years ago
this happens every time
M
Mark
said
almost 10 years ago
Please make sure the [BL script](http://devcenter.kinvey.com/html5/tutorials/how-to-implement-safe-signin-via-oauth#AddBusinessLogic) is pasted correctly. The script in the tutorial replaces the *entire* hook, and should *not* be pasted in the onPreSave hook.
Andreas Zoellner
POST https://baas.kinvey.com/user/kid_PVUyQAskiO/?provider=twitter&step=requestToken&_=3m04ktz2cwfav2t9 500 (Internal Server Error)
All I changed in the sample code is the app key and secret and app.js line 156 to:
Kinvey.Social.connect(null, 'twitter').then(function() {
Where is the problem?