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

github-readme-stats.vercel.app does not works #2048

Closed
ImKunYoung opened this issue Sep 24, 2022 · 5 comments
Closed

github-readme-stats.vercel.app does not works #2048

ImKunYoung opened this issue Sep 24, 2022 · 5 comments

Comments

@ImKunYoung
Copy link

ImKunYoung commented Sep 24, 2022

✔️ Describe the bug

github-readme-stats.vercel.app does not works


- 📸 ScreenShot - Code
image

- 📸 ScreenShot - result
image


- 📋 MarkDown Code

<p align="center">
  <a href=""><img src="https://github-readme-stats.vercel.app/api/top-langs/?username=ImKunYoung&layout=compact&langs_count=10"/></a>&nbsp
  <a href=""><img src="https://github-readme-stats.vercel.app/api?username=ImKunYoung&count_private=true&show_icons=true"/></a>
</p>

- 📋 MarkDown Result

 



- 📋 MarkDown Demo Code

[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats)

- 📋 MarkDown Demo Result

Top Langs


✔️ Expected behaviour

image



sorry for my short english

@schmittsfn
Copy link

schmittsfn commented Sep 24, 2022

Here the error logs from Vercel:

[GET] /api/pin/?username=[redacted]&repo=[redacted]&theme=dark&show_owner=false
12:28:00:91
RequestId: dc88f527-1cb0-476d-8c17-fbcdbf2ea59a Error: Runtime exited with error: exit status 1
Runtime.ExitError
2022-09-24T10:28:00.985Z	undefined	ERROR	Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/var/task/src/common/utils' imported from /var/task/api/pin.js
    at new NodeError (node:internal/errors:372:5)
    at finalizeResolution (node:internal/modules/esm/resolve:437:11)
    at moduleResolve (node:internal/modules/esm/resolve:1009:10)
    at defaultResolve (node:internal/modules/esm/resolve:1218:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at link (node:internal/modules/esm/module_job:78:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
RequestId: caa2e2b4-728e-49f9-b8d7-7311587cf6ac Error: Runtime exited with error: exit status 1
Runtime.ExitError

@schmittsfn
Copy link

Possibly caused by changes in this commit: 107f7ca

Maybe Vercel cannot interpret more modern js syntax?

Screenshot 2022-09-24 at 12 53 43

@rickstaa
Copy link
Collaborator

@schmittsfn Thanks for letting me know. I think 107f7ca indeed causes it. I will spend some minutes debugging it and otherwise revert #1995.

@schmittsfn
Copy link

@rickstaa Thank you for looking into this 🙏
I saw that the default vercel instance seems to have stopped throwing 500s. Was there a config that needed changing on Vercel? (I'm asking because there is no commit yet on this repo)

@schmittsfn
Copy link

Never mind, saw your commit. Thank you for the fix

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

3 participants