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

500 error on uploading a pdf file #1

Open
sofiia-kit opened this issue Aug 12, 2024 · 0 comments
Open

500 error on uploading a pdf file #1

sofiia-kit opened this issue Aug 12, 2024 · 0 comments

Comments

@sofiia-kit
Copy link

sofiia-kit commented Aug 12, 2024

Steps to reproduce:

  1. Run the app on localhost without docker
  2. Upload a valid pdf file via the file uploader

Actual result:
http://localhost:3000/api/pdf-to-text returns 500:
Warning: UnknownErrorException: The API version "4.4.168" does not match the Worker version "3.11.174".
12

{ "props": { "pageProps": { "statusCode": 500 } }, "page": "/_error", "query": { }, "buildId": "development", "isFallback": false, "err": { "name": "Error", "source": "server", "message": "Missing API environment variables", "stack": "Error: Missing API environment variables\n at eval (webpack-internal:///(api)/./pages/api/pdf-to-text.ts:12:11)" }, "gip": true, "scriptLoader": [ ]

Expected result:
It would be great to receive comprehensive information about versions mismatch so it would be easier to find and solve the issue on my machine

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

1 participant