peers / peerjs-server

Server for PeerJS
https://peerjs.com
MIT License
4.34k stars 1.08k forks source link

getting unauthorized as response from post request. #178

Closed palashc2011 closed 4 years ago

palashc2011 commented 4 years ago

http://localhost:9000/peerjs/4a9699c7-937a-406a-8b71-e77befd89531/jg41ga3hr8/id?i=0
returns Unauthorized as the response

first "GET" hit was successful (which returned client id "4a9699c7-937a-406a-8b71-e77befd89531" as response)

palashc2011 commented 4 years ago

After debugging I realized that realm.getClientById returned null as the clients Map of the Realm class instance was empty. The client id was generated via generateClientId before this POST call in the get api which was succesful, but still the Map is empty