Page 1 of 1

403 error from the API

Posted: Sat Jan 07, 2023 12:07 pm
by strickvl
Hi,

I'm trying to built a little dashboard showcasing my Project Euler scores on a Tidbyt device ([link]https://tidbyt.dev/docs/build/build-for-tidbyt[/link]). I see that I can get my current problem / level via the API at

Code: Select all

https://projecteuler.net/profile/strickvl.txt
.

I can access this via CURL and in my browser just fine, but when I go to build / render the app and try to make a GET request to the endpoint, I get a 403 error (i.e. forbidden request).

I can't quite figure out why this is the case, but I'm guessing it is because you have some rules on your server that block my request because it looks automated or something like that? Is that the case? It'd be nice to be able to access the data.

Re: 403 error from the API

Posted: Sat Jan 07, 2023 10:40 pm
by euler
I have no idea why it wouldn't work if it's a well-formed HTTPS request. I'm certainly not implementing any rules that might block the request. Maybe some others who have had experience with building apps that use the API might have some ideas.