mafintosh / webrtc-swarm

Create a swarm of p2p connections using webrtc and a signalhub
MIT License
380 stars 60 forks source link

calls to /all in Firefox are being interpreted as XML #31

Open robbiemu opened 6 years ago

robbiemu commented 6 years ago

Im noticing my app works just fine in chrome, and in fact it works in firefox too but the console keeps reporting errors:

Erro no processamento de XML: nenhum elemento encontrado
Posição: http://localhost:8099/v1/p2p-chat/all
Número da linha 1, coluna 1:

That says:

Error processing XML: no elements found Position/URI: http://localhost:8099/v1/p2p-chat/all Line 1, Column 1

The raw results there look maybe slightly different than normal, because I am using wrap:

data: {"passport":{"name":"Mogel","id":"542b8dc5-2c72-495c-81b7-289ed871aced"},"payload":{"type":"connect","from":"542b8dc5-2c72-495c-81b7-289ed871aced"}}

But that clearly wouldnt be valid xml even if it wasn't wrapped.

aral commented 5 years ago

I’m seeing the same thing on latest Firefox on Ubuntu (Pop!_OS) 18.10.

screenshot from 2019-01-24 21-59-15