Closed jannisch closed 1 week ago
I'm wondering how this could have ever worked before ?
Hi @jannisch,
Thank you for choosing our client for your application.
I understand you are using the influxdb3-client-browser
, which is specifically designed to operate within a browser environment. It’s important to ensure that you have a properly configured proxy to facilitate the client's operations, especially since it makes use of gRPC calls to communicate with InfluxDB 3.
For a step-by-step guide on setting up the client in a browser environment, including examples that might help you configure your setup more effectively, please visit our documentation here: Browser Examples.
Regarding the configuration of your Cloudflare environment to support gRPC:
Please ensure that Cloudflare’s gRPC settings are correctly configured to avoid connection issues or disruptions in service. This includes checking any relevant firewall settings, SSL/TLS configurations, and ensuring that your Cloudflare settings are compatible with gRPC's requirements.
If you have further questions or encounter specific issues while setting this up, feel free to share more details or error messages, and I’ll be more than happy to assist you further.
Best Regards
Thanks a lot for your reply. While I thought it is AI generated at first, it is quite helpful since you do provide an example for such a proxy. If I am not mistaken, the proxy is generally required, as the client could support only HTTP/1.1, i.e in the case of an outdated browser. On the other hand, one does control the environment when building an app using Deno, Bun, etc, just as in the case of Node.JS, where we know that the supported version supports HTTP/2. So it would be a nice feature enhancement in fact to be able to use the direct gRPC transport with in the browser sdk, correct?
Hi @jannisch,
As I mentioned, the proxy is required due to the browser environment. For more information, see - https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md.
Best regards
I am going to close this issue as it is a non-issue with browsers in fact.
However what I tried to point out that deno and other runtimes (which you already support) are not browser environments. They are rather like Node.js as we deploy them but with the same APIs as the browser, hence I don't understand the need for the proxy.
Specifications
Code sample to reproduce problem
Expected behavior
Respond with query results
Actual behavior
Additional info
Same behaviour with @influxdata/influxdb3-client-browser