Semantic icon indicating copy to clipboard operation
Semantic copied to clipboard

500 error on uploading a pdf file

Open sofiia-kit opened this issue 1 year ago • 0 comments

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

sofiia-kit avatar Aug 12 '24 08:08 sofiia-kit