Skip to content

Error in API call: TypeError: result.pages is not iterable (cannot read property undefined) #34

Description

@NicholasBracey

Hey, i'm running into a error. Ive added a .env file and added my key.

OPENAI_API_KEY='example_123'

Added a img and clicked extract form but getting the below error in console

> form-converter@1.0.0 dev
> node --watch server

(node:32753) ExperimentalWarning: Watch mode is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:32754) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:32754) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
Server running at http://localhost:3000
Sending data to OpenAI
{}
Process took 8.71 seconds
Error in API call: TypeError: result.pages is not iterable (cannot read property undefined)
    at sendToLLM (file:///Users/nicholasbracey/code/form-extractor-prototype/server.js:255:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Before running the project I have followed your instructions and brew installed graphicsmagick.

I also have credit on my openai account to make the calls.

Any insight would be much appreciated! Keep up the good work 👍

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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