500 error on uploading a pdf file
Steps to reproduce:
- Run the app on localhost without docker
- 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".
{ "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