Skip to content

500 error on uploading a pdf file #1

Description

@sofiia-kit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions