Closed arj03 closed 3 years ago
The updatePartialState error is strange. That is only called on SSB.net.feedReplication
like in profile, I don't know why SSB.net would be undefined. Maybe while it was loading or something.
About that DHT error, you might need to host the files a bit differently now. The browsers have gotten more restrictive so a simple npx http-server doesn't work anymore. I'm using nginx and this config:
server {
listen 8080;
root /home/arj/dev/ssb-browser-demo/dist/;
index index.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
add_header Cross-Origin-Opener-Policy same-origin;
add_header Cross-Origin-Embedder-Policy require-corp;
add_header Cross-Origin-Resource-Policy same-origin;
# CORS
#add_header Access-Control-Allow-Origin *;
}
}
Those errors popped up after it had been running for probably 2 minutes. Other functionality seemed to be working and it was talking with the pub, so I don't know either why SSB.net
would be undefined.
CORS policy doesn't explain why ssb-browser-demo would be trying to issue an XMLHttpRequest
for the dht:
address. Something is causing it to try to ask for that directly instead of running it over the DHT connection.
I have just testing DHT between a firefox instance and a chrome, and it is working in this branch for me.
Pubs seem to be working okay, but the room isn't working (guessing because the room server's down right now) and DHT sort of works but causes errors:
You can get DHT to work, but the connection on the inviting end doesn't get saved as a DHT-type connection and does not reconnect after a refresh.