Issue with Unexpected HTML Responses Instead of JSON

Hi everyone!

I am writing because of an issue I'm experiencing when using zrok to forward an application running locally.

The application is correctly visualized through the zrok forwarded link, but when I try to interact with it ( it is a UI to collect and query data from ML experiments GitHub - aimhubio/aim: Aim 💫 — An easy-to-use & supercharged open-source experiment tracker.), I receive an error indicating that the data expected to be in JSON format is actually HTML. The exact error message is:

Unexpected token '<', "<html> <h"... is not valid JSON

This issue does not occur when accessing the application directly on the local network, where JSON responses are correctly received and parsed.

Previously, I used ngrok for the same scope and did not have this issues.

Here is also a snippet from the logs running zrok in verbose mode:

[sdk-golang/ziti/edge/network.(*edgeConn).Read: unexpected sequencer err (read timed out)]

Thanks in advance for any help!!

Can you check the response code? HTML is returned when you receive 404 Not Found. It might be your share is not currently available (or at a different address than you're expecting).

Hi @softmax, welcome to the community and to zrok (and OpenZiti)!

can you share the command you used to share the service? I'm guessing/thinking you used --backend-mode web but you probably don't want that. You probably want to leave the --backend-mode empty.

Would you share the command you used?