Page 1 of 1

More Api Problems

PostPosted: Thu Dec 08, 2016 10:33 pm
by sysv
Well the api continues to give me a headache pasting this into a web page i get


Error 520 Ray ID: 30e34a1b00b01bbb • 2016-12-08 21:25:22 UTC
Web server is returning an unknown error

Or this json result

"status": "error",
"error message": "API key is invalid or disabled"

Or on occasion ( which is perhaps one in 10 tries)
the proper result

my qt/qml app i am working on gives this immediate response a lot of the time
- server replied: Origin Error"

Anyone help

Re: More Api Problems

PostPosted: Mon Dec 12, 2016 1:10 pm
by Kode
I had to remove the VPS servers as we had issues with them, so was running on 1 main server + 1 VPS, unfortunately the load to the API caused OVH to decide that the VPS was being attacked and dropping traffic, the servers are in round robin so when trying to hit the VPS I think that is where the cloudflare 520 error was coming from, I have added another 3 VPS's to try and share the load, see if that helps, I would suggest if you hit a 520 it might be worth pausing for 10 seconds before trying again as you will probably have cached the DNS and so will keep hitting the same server.

Re: More Api Problems

PostPosted: Mon Dec 12, 2016 11:29 pm
by sysv
ok thanks for the info. its nice to get a response. hopefully this will work. today i have seen no errors. Sat/Sun are the days that i get very little or no results

thanks again

Re: More Api Problems

PostPosted: Sat Jan 21, 2017 5:12 am
by sysv
Hey Kode took some time off from working on my app but see that a month later the problem as stated above remains
unresolved. Here is another error msg like before

Error 502 Ray ID: 3247c7fa54c30c41 • 2017-01-21 03:46:48 UTC
Bad gateway

Get this perhaps 8 out of 10 tries tonite. I use the images from here for backgrounds,cd artwork,banners for my player which by design won't start till the images are loaded. Waiting 15 secs or more to flush the dns cache just isn't a viable option. i can wait a very long time at times And at this point in time i do not even know if there is a way to do this with qtnetworkmanager. Any Suggestions? Does VIP membership give me means to get my net request in without failure? Would storing the background,cd,banner url's on my side help? Any suggestions?

Re: More Api Problems

PostPosted: Sun Jan 22, 2017 12:55 am
by Kode
Man, these VPS are flakey as hell =/

See how you get on now, I've spent the last 4+ hours trying to get it sorted out, ditched the VPSs and it's now running on the main API server plus an extra dedicated server.

Re: More Api Problems

PostPosted: Sun Jan 22, 2017 2:22 am
by sysv
Ok looks good now. Will be testing more tomorrow


Re: More Api Problems

PostPosted: Sun Jan 22, 2017 11:24 pm
by sysv
No Problems again to day

Thanks again