Closed vascYT closed 3 years ago
Gonna try redeploying the project to see if that fixes anything, if not I'll try to figure out why it's doing that
Still doesn't work on Vercel, but works on my localhost as well, this is very annoying and I'm not sure what is going wrong
Yeah. I am also confused.
Ok, we're getting somewhere. Adding ?animated=false to the end makes it work, so I'm assuming it has to do something with the gif size or the conversion to base64
Okay, but why does it work on localhost then?
I mean his pfp is 20mb. In comparison mine is 1mb. I think it's a Vercel limitation.
Yeah, the rendered svg is 16mb big...
That's why it works with animated set to false. Because then the svg is only 24kb.
"The maximum payload size for the request body or the response body of a Serverless Function is 5 MB."
Thanks for bringing this to my attention, pushed a fix and it should be working now :+1:
Thanks for fixing it 👍
Hey, a friend of mine tried to use this tool, but got a 500 error (https://lanyard-profile-readme.vercel.app/api/224270178836283392). It is a valid user id and it's not a problem with the lanyard api, because it shows all of his details as normal (https://api.lanyard.rest/v1/users/224270178836283392).
I then tried to run the project locally to read the error message, but then saw that it worked perfectly fine.