Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed in Warpcast Validator but looks ok in frog local dev #350

Closed
1 task done
louislucrypto opened this issue Jun 8, 2024 · 7 comments
Closed
1 task done

Failed in Warpcast Validator but looks ok in frog local dev #350

louislucrypto opened this issue Jun 8, 2024 · 7 comments
Labels
Needs Reproduction Misc: Needs Reproduction

Comments

@louislucrypto
Copy link

louislucrypto commented Jun 8, 2024

Describe the bug

134.209.36.149:3000/dev Frog looks good but
However warpcast validator give me errors of "validateFrameEmbed 400 - Frame image error: Invalid ContentType: 'text/plain; charset=UTF-8'."
warpcast.com/~/developers...

Link to Minimal Reproducible Example

https://warpcast.com/~/developers/frames?url=http%3A%2F%2F134.209.36.149%3A3000%2F

Steps To Reproduce

i have attached link
compare

Frog Version

0.11.5

TypeScript Version

No response

Check existing issues

Anything else?

Feel free to reach out to me on warpcast
@loui

@louislucrypto
Copy link
Author

Ideally I think Frog local dev environment should give me same error so I could fix it.

@nestorbonilla
Copy link

I'm also running into the validateFrameEmbed 400 - Missing image URL error. Has anyone found a solution or workaround for this?

@louislucrypto
Copy link
Author

@nestorbonilla looks like this is not only me. What version is your frog?
I'm thinking maybe this is introduced in some latest update.

@nestorbonilla
Copy link

@louislucrypto this error is with version 0.11.5. I just upgraded to version 0.11.6, and with any additional modification I'm having a new one, but similar: validateFrameEmbed 400 - Frame image error: Invalid ContentType: ''.

@dalechyn
Copy link
Collaborator

dalechyn commented Jun 9, 2024

Hey @louislucrypto.

Link to Minimal Reproducible Example
https://warpcast.com/~/developers/frames?url=http%3A%2F%2F134.209.36.149%3A3000%2F
Steps To Reproduce
i have attached link
compare
https://warpcast.com/~/developers/frames?url=http%3A%2F%2F134.209.36.149%3A3000%2F
http://134.209.36.149:3000/dev

Thanks for attaching those, but I'd appreciate a separate repo with an actual min. reproduction, as I cannot really debug the issue without running it locally and can only assume what might be wrong.

Your frame fails in Warpcast Validator because indeed the Content-type isn't image/png but text/html.

That shouldn't be the case normally unless you're overriding this header yourself. Frog is using hono-og/resvg+yoga that set this header by default to image/png.

I can only assume you're running a reverse proxy like NGINX, it might mess up those headers.

Anyway, I can only assist effectively if you will provide a minimal reproducible example.
Please re-open the issue if you add one.

@dalechyn dalechyn added the Needs Reproduction Misc: Needs Reproduction label Jun 9, 2024
Copy link
Contributor

github-actions bot commented Jun 9, 2024

Hello @louislucrypto.

Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository.

Minimal reproductions are required as they save us a lot of time reproducing your config & environment, and trying to reproduce your issue. See Why reproductions are required.

Please reopen this issue when a reproduction is added.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2024
@benbaessler
Copy link

Hey @louislucrypto.

Link to Minimal Reproducible Example
https://warpcast.com/~/developers/frames?url=http%3A%2F%2F134.209.36.149%3A3000%2F
Steps To Reproduce
i have attached link
compare
https://warpcast.com/~/developers/frames?url=http%3A%2F%2F134.209.36.149%3A3000%2F
http://134.209.36.149:3000/dev

Thanks for attaching those, but I'd appreciate a separate repo with an actual min. reproduction, as I cannot really debug the issue without running it locally and can only assume what might be wrong.

Your frame fails in Warpcast Validator because indeed the Content-type isn't image/png but text/html.

That shouldn't be the case normally unless you're overriding this header yourself. Frog is using hono-og/resvg+yoga that set this header by default to image/png.

I can only assume you're running a reverse proxy like NGINX, it might mess up those headers.

Anyway, I can only assist effectively if you will provide a minimal reproducible example. Please re-open the issue if you add one.

I'm facing the same issue, not using NGINX or anything else. Locally, the frame renders but when testing it in the Warpcast frame validator it throws this error: Frame image error: Invalid ContentType: 'text/html'.

It even displays the content type to be image/png in the UI.

Screenshot from 2024-06-13 02-43-42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Reproduction Misc: Needs Reproduction
Projects
None yet
Development

No branches or pull requests

4 participants