element-hq / element-integration-manager

Element Integration Manager related issues
6 stars 1 forks source link

scalar.vector.im returns 502 Bad Gateway when trying to add a Cloudflare Workers Flareact webpage as custom widget #84

Open MexHigh opened 3 years ago

MexHigh commented 3 years ago

Description

I'm trying to build a webapp with Flareact (a Cloudflare Workers framework to use Next.js-like features) and want to embed it as a widget in a chat room. Unfortunately, when trying to add it, there is this strange error: Unexpected token < in JSON at position 0. When unticking "Check if content is embeddable", the widget is saved, but nevertheless the content cannot be displayed.

When looking in the network tab, the request to scalar.vector.im returns status code 502, but only for Flareact webpages which is kinda strange. Everything else (including "vanilla" Cloudflare Workers pages) works fine and is embeddable, as long as there are no precautions to prevent framing.

Unbenannt

I created an additional Flareact Worker just for testing this (so I can confirm, that this is reproducable for more than just one project). Feel free to use the worker for reproduction: https://flareact.huskyiglu.workers.dev/

The following steps (and only those) were used to setup the worker: https://flareact.com/docs/getting-started#installation

Steps to reproduce

Logs being sent: yes

Version information

Half-Shot commented 1 year ago

This still seems to be an issue on the new integration manager.