Image Generator Issue - Using Canvas, Express

Hello,

Earlier I asked about issue regarding Image Generator not recognizing the url. Thats fixed but I am having another issue issue

I’ve been experiencing issues with the Generation of the image in a new endpoint I created… The issue is, I am getting “TypeError: Invalid arguments” and “stream.on is not a function” in the console when I provide the Image Link arguments into the Image Generator Link.

Challenger.js (file that makes the image)
https://natebot-haste.glitch.me/imevawivod.cs

index.js (Where the image gets processed)
https://natebot-haste.glitch.me/yoniqaluqe.js

The Result should end up like this: enter image description here

Project: ichigo-api (Project is private so i’ll send invite link via Private Message)

Thanks for your time :slight_smile:

1 Like

Should mention that I am using the following module versions:

  • “body-parser”: “^1.18.3”,
  • “canvas”: “^2.3.1”
  • “express”: “^4.16.4”
  • “node-superfetch”: “^0.1.9”
  • “request”: “^2.88.0”

For the first one, “arguments” here refers to the values that you provide to a function call. See if you can use your browser’s developer tools to find out what function call is throwing this error.

For the second one, “is not a function” in practice often comes up when the value is undefined, as the result of looking up a property that isn’t set on an object. See if you can make sure that stream is the kind of object you expect it to be.

3 Likes

Thanks for the advice. I’ll see what i can do