Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Messages Count stuck on 0
- god286
-
Scratcher
1000+ posts
Messages Count stuck on 0
I am using allorigins win CORS proxy to make a simple Scratch profile thing. I am not sure why, but for some reason when I go to the Scratch API's message count page, it just responds with {“count”: 0} instead of the real message count. I tried this on griffpatch, who should have a lot of messages, and it still reported 0. I went in a new tab and went to the Scratch API Message Count page (without the proxy) and it showed the real message count of griffpatch. I think this problem may be on allorigins win's side, but then I would either need to figure out how to make a CORS proxy myself, or an alternative. This probably doesn't relate to Scratch but I am wondering if anyone with more expertise can help me. Also, if this makes any change, I am using Svelte with SvelteKit for this project.
This picture shows the response from allorigins win.

Thank you,
@god286.
This picture shows the response from allorigins win.

Thank you,
@god286.
- Chiroyce
-
Scratcher
1000+ posts
Messages Count stuck on 0
Hi, as far as I know, this is not a bug, but a restriction put in place to prevent automated scripts (other than from the Scratch website) from getting message counts.
- god286
-
Scratcher
1000+ posts
Messages Count stuck on 0
Hi, as far as I know, this is not a bug, but a restriction put in place to prevent automated scripts (other than from the Scratch website) from getting message counts.Ohh!! That explains it!! Thank you so much Chiroyce! I am going to close this topic now. That was a very fast answer. thank you so much

Edit: I would have closed this topic except I don't know where the button is.
Last edited by god286 (Oct. 6, 2021 07:51:15)
- Maximouse
-
Scratcher
1000+ posts
Messages Count stuck on 0
Edit: I would have closed this topic except I don't know where the button is.The button appears once the topic is 24 hours old. You can report it instead so a moderator can close it.
- god286
-
Scratcher
1000+ posts
Messages Count stuck on 0
Ok! I will report it to a moderator now. Thanks @Maximouse and @Chiroyce!Edit: I would have closed this topic except I don't know where the button is.The button appears once the topic is 24 hours old. You can report it instead so a moderator can close it.

- Discussion Forums
- » Advanced Topics
-
» Messages Count stuck on 0