Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPError: Response code 500 (Internal Server Error) #14

Open
DrigaNicolai opened this issue Jan 25, 2024 · 10 comments
Open

HTTPError: Response code 500 (Internal Server Error) #14

DrigaNicolai opened this issue Jan 25, 2024 · 10 comments

Comments

@DrigaNicolai
Copy link

I have followed all the instructions, specified the correct token, but everything stops at the stage of
Loading source files tree giving error 500
image

@zehfernandes
Copy link
Owner

It is working in my tests.

What are the vercel url are you using?

@DrigaNicolai
Copy link
Author

I tried two links, the first one is a commercial project, so I can't share it, the second one is my test project, I can share it if needed

@DrigaNicolai
Copy link
Author

@zehfernandes
I have tried installing a newer version of node js, but I still encounter this error. I get as the deployment url this value
image
am I right?
(test project deployment url from the screenshot: nextjs-locofy-real-estate-j207zulc0-driganicolai.vercel.app)

@zehfernandes
Copy link
Owner

hmmm the URL is right.

I couldn't reproduce the error with my test projects.

Maybe if you have time we can add some console.logs (https://github.com/zehfernandes/get-vercel-source-code/blob/main/index.js#L63) to this function and paste here the outputs to help me understand more about the error and try to fix the issue.

@DrigaNicolai
Copy link
Author

DrigaNicolai commented Jan 30, 2024

I added a couple of console logs:

async function getDeploymentSource(id) {
  console.log(id, "id");
  let path = `/v6/deployments/${id}/files`;
  console.log(path, "path");
  if (VERCEL_TEAM) path += `?teamId=${VERCEL_TEAM}`;
  const files = await getJSONFromAPI(path);
  console.log(files, "files");
  // Get only src directory
  const source = files.find((x) => x.name === "src");
  console.log(source, "source");
  // Flatten tree structure to list of files/dirs for easier downloading
  return flattenTree(source);
}

and this is the result:

image

Seems to be an issue in getFromAPI function

@gerardo-contijoch
Copy link

I'm having the same issue, but it seems the problem is on the API side. I tried the same request using Postman and Invoke-WebRequest Powershell api and got a 500 error after a couple of minutes.

Screenshot 2024-02-14 185519
.

@Piliponful
Copy link

Same for me. Also tested with plain curl copied from vercel docs and it didn't work. So it seems to be a problem with their API and not this repo code.

@lawbyte
Copy link

lawbyte commented May 28, 2024

image
im facing the same issue, please help @zehfernandes

@sekedus
Copy link

sekedus commented Jul 26, 2024

This only works if deploying project from Vercel CLI

@anthonyyoussef01
Copy link

It's not working for me and the project was deployed using Vercel CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants