panaaj / nmeasimulator

NMEA Sentence Generator
129 stars 13 forks source link

Web Socket "Upgrade Required" Message #36

Closed ataxia1 closed 2 years ago

ataxia1 commented 2 years ago

When configured to generate sentences via Web Socket, the only data that seems to come through is an "Upgrade Required" message.

A screenshot of my selected settings is attached.

NMEASimulator

panaaj commented 2 years ago

I cannot reproduce an issue using websockets. Can you pease advise which version of the app and the client type (linux, win, mac, RPi) you are using and your setup which is producing the error.

ataxia1 commented 2 years ago

Hi, thanks for writing back. 1.3.1 on a PC. Web socket on port 3000, NMEA output stream format. Works fine in TCP mode.

panaaj commented 2 years ago

So a PC using Windows or Linux? Where is the "Upgrade Required" message appearing, in the client connecting to the stream? How are you connecting to the websocket stream? Can you provide a screenshot of the error?

ataxia1 commented 2 years ago

Sorry, thought Windows was implied by PC, but you got me there.. could have been running Linux.

Windows 10 64 bit.

Just figured out the problem. Was testing with Postman, and there is a separate way you have to set up a web socket GET request versus an HTTP GET. Sorry to waste your time, but I really appreciate you trying to help me out. You made a great program.


From: AdrianP @.> Sent: Wednesday, January 12, 2022 5:45 PM To: panaaj/nmeasimulator @.> Cc: ataxia1 @.>; Author @.> Subject: Re: [panaaj/nmeasimulator] Web Socket "Upgrade Required" Message (Issue #36)

So a PC using Windows or Linux? Where is the "Upgrade Required" message appearing, in the client connecting to the stream? How are you connecting to the websocket stream? Can you provide a screenshot of the error?

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpanaaj%2Fnmeasimulator%2Fissues%2F36%23issuecomment-1011553746&data=04%7C01%7C%7C722b50787a104038163d08d9d6259529%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637776279182722993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=MWRsPbITZjps%2FKCR5R5yF7rn%2BcPfoorUs8BvukuGtbU%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIX4Q5Z3PRMMDW2WPG44AALUVYHAVANCNFSM5LIIFMNQ&data=04%7C01%7C%7C722b50787a104038163d08d9d6259529%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637776279182722993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=G%2B2koq31n7iLSJbmuaRLT90ohcFERzThGtHFxD8Vcg4%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C722b50787a104038163d08d9d6259529%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637776279182722993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wg2XxMj5D%2Fb2jgVklo%2BI%2FTKYCe53ZBemBd6QWsw6RvI%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C722b50787a104038163d08d9d6259529%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637776279182722993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Gj4CVoyb3CBCI7v5P%2B3cxplD0Q3ok5hoR%2BNCYss46OQ%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

ataxia1 commented 2 years ago

Turns out to be an issue with how I was testing, not with the simulator. Closing the ticket. For those using Postman, be sure to create a Web Socket project instead of an HTTP project.