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

Personal Vercel Deployment Error #2

Closed
silvncr opened this issue Jun 4, 2021 · 7 comments
Closed

Personal Vercel Deployment Error #2

silvncr opened this issue Jun 4, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@silvncr
Copy link

silvncr commented Jun 4, 2021

Hi @FlyN-Nick, I haven't used Vercel before, and created a deployment for my fork of your repo. Can you please help me get it working? The deployment is here, and I've changed the following in src/card.ts according to your README:

// LINE #50
let wantAllSuperRank = true;
let wantLongTimeAccount = true;
let wantAncientAccount = true;
let wantJoined2020 = true;

Thank you in advance!

@FlyN-Nick FlyN-Nick self-assigned this Jun 4, 2021
@FlyN-Nick FlyN-Nick added the bug Something isn't working label Jun 4, 2021
@FlyN-Nick FlyN-Nick pinned this issue Jun 4, 2021
@FlyN-Nick
Copy link
Owner

Hi @TurnipGuy30, looking at the code you changed, what is probably occurring is that adding one or more of these trophies is resulting in some sort of error in the code. I suggest first returning the code in src/card.ts back to

// LINE #50
let wantAllSuperRank = true;
let wantLongTimeAccount = false;
let wantAncientAccount = false;
let wantJoined2020 = false;

just to make sure that it isn't an issue with your vercel deployment itself. I find it unlikely for that to be the case because when going to your deployment with no query parameters it has the expected behavior of having the message Can not find a query parameter: username. Then, go through each of the booleans (wantLongTimeAccount, wantAncientAccount, & wantJoined2020) and set them individually to true and test to see which ones break your deployment. I am going to go through my code to see what may be causing the error.

@FlyN-Nick
Copy link
Owner

I just went through my code, unfortunately, I could not find anything that should result in an error.

@FlyN-Nick
Copy link
Owner

I just temporarily changed my repo to the changes you made and it worked as expected with no errors, so it turns out it is an issue with your deployment itself.

@silvncr
Copy link
Author

silvncr commented Jun 5, 2021

OK, I'll try that. Thanks for the help, I'll let you know what happens.

@silvncr
Copy link
Author

silvncr commented Jun 5, 2021

Huh, I changed it all back to how it was originally, and it still gives an Error 500:

500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: syd1::jhswj-1622896333553-870976b1583c

But thanks anyway! Maybe you could make a fork/branch of the Repo with the code changed...

@FlyN-Nick
Copy link
Owner

Alright, you can use this link to get all of the secret trophies.

If you want to keep on debugging your Vercel deployment, make sure that the root directory is set to ./, that the framework preset is set to Other, and that you added an environmental variable GITHUB_TOKEN with the value of a GitHub PAT that you generated.

@silvncr
Copy link
Author

silvncr commented Jun 8, 2021

Thanks for the help! I might try Vercel again in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants