Digighost Posted July 15, 2022 #1 Posted July 15, 2022 I have had successful API calls for a year. Now in the last 2 days keeps coming back code 1020. I know this is a cloudfront error for access denied. Is anyone else getting this error now? I am a Platinum V VIP player and enjoy stake but am starting to look for alternatives which i would hate to do but this is forcing me to move away.
Digighost Posted July 15, 2022 Author #4 Posted July 15, 2022 25 minutes ago, yulius99 said: im also error, just wait until fixed.. Thanks for reply... however I'm not a huge waiter. anyone find a solution? 4 minutes ago, AdamBetsMax said: what does this API do exactly? API is a way of interaction with stake.com services in a Headless environment. If that sounds like jiberish probably not a good idea to look into it further.
dupeddonk Posted July 15, 2022 #5 Posted July 15, 2022 Are you including all the same headers that a bet through your browser includes?
Digighost Posted July 15, 2022 Author #6 Posted July 15, 2022 7 minutes ago, dupeddonk said: Are you including all the same headers that a bet through your browser includes? I have been using the api for over a year and my headers have been fine. In the interest of being complete here are my headers. Witch i have never had any issues with. { "Content-Type": "application/json", 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36', "Content-Length": payloadStr.length, "x-language": "en", "x-access-token": exports.token }
dupeddonk Posted July 15, 2022 #7 Posted July 15, 2022 34 minutes ago, Digighost said: I have been using the api for over a year and my headers have been fine. In the interest of being complete here are my headers. Witch i have never had any issues with. { "Content-Type": "application/json", 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36', "Content-Length": payloadStr.length, "x-language": "en", "x-access-token": exports.token } I can't test it with any scripts right now, but I'm able to make single bets through the console with simple fetch requests. My guess is cloudflare is throwing error because it knows you are making request from somewhere besides the browser. You could try adding these headers: "accept": "*/*", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-site", You might also need to add: "mode": "cors", after "method": "POST", If it's not there already.
Digighost Posted July 15, 2022 Author #8 Posted July 15, 2022 1 hour ago, dupeddonk said: I can't test it with any scripts right now, but I'm able to make single bets through the console with simple fetch requests. My guess is cloudflare is throwing error because it knows you are making request from somewhere besides the browser. You could try adding these headers: "accept": "*/*", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-site", You might also need to add: "mode": "cors", after "method": "POST", If it's not there already. Thanks for trying @dupeddonk but, unfortunately that didn't work.
Digighost Posted August 27, 2022 Author #9 Posted August 27, 2022 So yes the error is back again.... Ugh.
balbs89 Posted August 27, 2022 #10 Posted August 27, 2022 I enjoy to betting in Stake.com because this API, i hope it goes back to normal soon....with this feature no make sense for me betting here...
xxx44552 Posted August 27, 2022 #11 Posted August 27, 2022 17 hours ago, Digighost said: So yes the error is back again.... Ugh. How much took time previous trouble with api?
Keibow Posted August 29, 2022 #12 Posted August 29, 2022 API has not been connected since last Friday
Keibow Posted August 29, 2022 #13 Posted August 29, 2022 I am troubled. . . The API response has changed from 1020. Returns the HTML page source. The title is "Action required". What should I do?
xxx44552 Posted August 29, 2022 #14 Posted August 29, 2022 3 minutes ago, Keibow said: I am troubled. . . The API response has changed from 1020. Returns the HTML page source. The title is "Action required". What should I do? Can you show request? I still have 403 error
Keibow Posted August 29, 2022 #15 Posted August 29, 2022 I have the following in my header: Content-Type: x-access-token: User-Agent:
Keibow Posted August 30, 2022 #16 Posted August 30, 2022 If I can't use it as it is, I will use a mirror site.
pragna Posted September 1, 2022 #18 Posted September 1, 2022 I get this answer from support: Quote Hi there. API is currently down, and our team is working on building something new in the coming weeks that will serve as a replacement. So I'm afraid that you won't be able to use any custom bots or other methods that might have been possible before. This was a security change that we were sadly forced to undertake in order to better protect the integrity of our platform. Kind regards.
notYou Posted September 1, 2022 #19 Posted September 1, 2022 The API is not down. It is working fine just as usual. They can not take it down at all. The website itself uses the API. Stake Support has no idea. The 1020 error mentioned above is returned as result of IP rate limiting 🙄
pragna Posted September 1, 2022 #20 Posted September 1, 2022 i get ACCESS DENIED when i try open api.stake.com/graphql but with other tld's i can open the site but there the POST not working. The response tell me "Forbidden"
xxx44552 Posted September 4, 2022 #22 Posted September 4, 2022 On 9/3/2022 at 11:22 AM, pragna said: Still not work. Same
balbs89 Posted September 4, 2022 #23 Posted September 4, 2022 On 9/3/2022 at 5:22 AM, pragna said: Still not work. sam ehere, sad
Uldoozcffshm Posted September 4, 2022 #24 Posted September 4, 2022 Just send a mail to [email protected] Problem Solved 🤦🏿♂️
pragna Posted September 5, 2022 #25 Posted September 5, 2022 i send a few mails and everytime the tell me the same that they dont know when the api would be enabled again.
Featured Comment
Archived
This topic is now archived and is closed to further replies.