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

Error Generating NFT: Unsupported Image Format in Buffered Short-Link Images #166

Open
dappsar opened this issue Nov 2, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@dappsar
Copy link
Collaborator

dappsar commented Nov 2, 2024

When attempting to generate a certificate using images provided via short-links or buffered image URLs (e.g., https://ibb.co/TRMhYpz), the bot proceeds through the standard prompts, asking for a message and confirmation. It then concludes with the message:

🎉 "Your certificate is being generated! I’ll notify you once it’s ready. If you need further assistance, I'm here to help."

log GCP

2024-11-01 20:31:40.389 ART POST200273 B170 mspython-httpx/0.27.2 https://back.chatterpay.net/nft/
2024-11-01 20:31:40.401 ART {hostname: localhost, level: 30, msg: incoming request, pid: 3, req: {…}, reqId: req-k, time: 1730503900402}
2024-11-01 20:31:40.407 ART Parsing URL-encoded or key-value data
2024-11-01 20:31:40.408 ART Successfully parsed body: {
2024-11-01 20:31:40.408 ART url: "https://ibb.co/TRMhYpz",
2024-11-01 20:31:40.408 ART mensaje: "Code Is Law!",
2024-11-01 20:31:40.408 ART channel_user_id: "5491153475204",
2024-11-01 20:31:40.408 ART }
2024-11-01 20:31:40.558 ART Obteniendo imagen de NFT
2024-11-01 20:31:40.567 ART {hostname: localhost, level: 30, msg: request completed, pid: 3, reqId: req-k, res: {…}, responseTime: 164.89763000048697, time: 1730503900567} 2024-11-01 20:31:40.800 ART
Error al descargar la imagen del NFT: Input buffer contains unsupported image format

However, the backend fails to download and process the image, due to the buffered short-link format, resulting in an error. Below is an example of a Google Cloud Platform (GCP) log entry:

Error

⚠️🚫 Error al descargar la imagen del NFT: Formato de imagen no compatible.

Whtasapp-chats

- user: certificado: https://ibb.co/TRMhYpz
- bot: He recibido la imagen para el certificado. Por favor, indícame qué mensaje deseas agregar como descripción de tu certificado.
- user: Code Is Law!
- bot: Estás a punto de crear un certificado NFT vinculado con el mensaje “Code Is Law!”. ¿Quieres confirmar para proceder?
- user: Si
- bot: 🎉 ¡Tu certificado está siendo generado! Te notificaré una vez que esté listo. Si necesitas ayuda con algo más, estoy aquí para asistirte.
`` `
@dappsar dappsar added the bug Something isn't working label Nov 2, 2024
@dappsar dappsar added this to the MVP milestone Nov 2, 2024
@dappsar dappsar changed the title Error Generating Certificate: Unsupported Image Format in Buffered Short-Link Images Error Generating NFT: Unsupported Image Format in Buffered Short-Link Images Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant