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

Vercel 無法導入 urllib3 #5

Closed
gn01758628 opened this issue May 1, 2024 · 1 comment
Closed

Vercel 無法導入 urllib3 #5

gn01758628 opened this issue May 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gn01758628
Copy link

部屬在Vercel上並打Api,出現以下畫面
螢幕擷取畫面 2024-05-02 003017
去log查看顯示的訊息是:

LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
[ERROR] Runtime.ImportModuleError: Unable to import module 'vc__handler__python': No module named 'urllib3.packages.six.moves'
Traceback (most recent call last):

查看GPT是說
根据您提供的错误信息,问题似乎在于您的 Vercel Serverless Function 无法导入 urllib3 库中的一个模块。

請問有什麼解決辦法嗎?

@gn01758628
Copy link
Author

降Node版本後可以正常使用了

@Barry-Flynn Barry-Flynn added the bug Something isn't working label May 5, 2024
@Barry-Flynn Barry-Flynn pinned this issue May 5, 2024
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