Discuss Scratch

-Archon-
Scratcher
36 posts

"xmlParseEntityRef: no name" on API request to proxy/featured

My browser / operating system: Linux, Chrome 80.0.3987.163, No Flash version detected
^ though that's all completely irrelevant as this isn't an error on my part

I'm using the Scratch REST API, and every time I make a request to the proxy/users/id/featured endpoint I get an error with the XML:



ST, can we get a fix for this?

Last edited by -Archon- (April 19, 2020 19:18:40)

apple502j
Scratcher
1000+ posts

"xmlParseEntityRef: no name" on API request to proxy/featured

Is the URL correct? the URL is https://api.scratch.mit.edu/proxy/featured
-Archon-
Scratcher
36 posts

"xmlParseEntityRef: no name" on API request to proxy/featured

Ah, whoops. The endpoint I'm trying to GET is https://api.scratch.mit.edu/proxy/users/id/featured

Last edited by -Archon- (April 19, 2020 19:18:21)

apple502j
Scratcher
1000+ posts

"xmlParseEntityRef: no name" on API request to proxy/featured

It seems like that page doesn't exist. You need to use /users/username/following/users/projects. /users/username/following/users/loves or /users/username/following/studios/projects depending on what you need.
-Archon-
Scratcher
36 posts

"xmlParseEntityRef: no name" on API request to proxy/featured

If it doesn't exist, then why isn't it giving me a 404 instead of an XML error? Also, why is that endpoint listed in the API docs?
apple502j
Scratcher
1000+ posts

"xmlParseEntityRef: no name" on API request to proxy/featured

That page is 404 error: try viewing the source. Also the page is probably outdated (especially for APIs that require authentication, like that)

Powered by DjangoBB