zehfernandes / get-vercel-source-code

Get source code hosted at vercel
99 stars 22 forks source link

Internal Server Error #11

Closed mister-loop closed 10 months ago

mister-loop commented 1 year ago

I am getting 500: Internal Server Error on the v6/deployments/:id/files path. The v13/deployments/:url path is correctly working and extracting the id as well. But somehow this one is not working.

I am doubtful if the endpoint has not changed.

zehfernandes commented 1 year ago

I think you are right!

Jobians commented 1 year ago

I'm getting same

rdwz commented 10 months ago

I am getting 500: Internal Server Error on the v6/deployments/:id/files path. The v13/deployments/:url path is correctly working and extracting the id as well. But somehow this one is not working.

I am doubtful if the endpoint has not changed.

It changed to v7 response is now base64 encoded: https://vercel.com/docs/rest-api/endpoints#get-deployment-file-contents

I have a forked version, that gets your source downloaded and decoded, but doesn't work for binary files: https://github.com/rdwz/vercel-source-fetcher/issues/9

zehfernandes commented 10 months ago

Fixed!