Skip to content

[Error] Could not convert argument of type symbol to string. #18

@fahmad480

Description

@fahmad480

Hi, i'm using the advance prompt example, and pretty sure use the correct cookies (i have tried with instant/manual method", but i always get this error

node:internal/deps/undici/undici:12502
      Error.captureStackTrace(err, this);
            ^

TypeError: Could not convert argument of type symbol to string.
    at node:internal/deps/undici/undici:12502:13
    at async Account.fetchSession (file:///D:/02DataKerja/00%20Personal/TextToImageGen/node_modules/@rohitaryal/imagefx-api/dist/Account.js:81:26)
    at async Account.refreshSession (file:///D:/02DataKerja/00%20Personal/TextToImageGen/node_modules/@rohitaryal/imagefx-api/dist/Account.js:40:29)
    at async ImageFX.generateImage (file:///D:/02DataKerja/00%20Personal/TextToImageGen/node_modules/@rohitaryal/imagefx-api/dist/ImageFX.js:42:9)
    at async file:///D:/02DataKerja/00%20Personal/TextToImageGen/example.js:19:24

Node.js v20.14.0

Btw, my country does not support imagefx, and i'm using vpn to get the cookies

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