maxmcd/webtty

Bug parsing sessionDescription

Opened this issue · 4 comments

OperationError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to parse SessionDescription. Expect line: v=
InvalidStateError: Failed to execute 'createAnswer' on 'RTCPeerConnection': PeerConnection cannot create an answer in a state other than have-remote-offer or have-local-pranswer.

Mind providing some more context about how you experienced this error?

Mind providing some more context about how you experienced this error?

Sure.. I downloaded the executable from the release and tested it on google colab.
It output a base64 string which I pasted in the github static page and got that error.

(by the way, to have a shell on google colab I develioped this: https://github.com/0wwafa/shell )
But I like the webrtc approach.

It has to do with copying and pasting because if I do it from the shell (my shell) I get:

have-remote-offer
stable
checking
Answer created. Send the following answer to the host:

aHkM7zZndJM8oVTD6xrhMhatNP9jhPb3JNDQzsW5CvdQRrf4oh1kUwsAoFRp8XT1hSg4gYooGBJN3rF6vos92mE7vrMVAyFZgHrWaZvuYa5duTBJCmhFUUv3NV43r8WveTw9KBsxwEyQHoThUXpfqUp95tiN4GgpmxJgD6HnontQgT8nD7iWCupSDaYAUS6J8MsKPGCMUuz32EZcv3YsQFXsgd4jZQzqi8g7BEevC7KrqV1GG2dqf6VoMh1DAZ7fnuXfL7HFaVN6BWWP8vRD7BU747ghNJETsD9hYcdrZkJroYTasGL9jYBffdDRra5upHQZHGoG9PmMgpuP9dDrjhSNmTR8jcitj3cPFpbc2h1tLSwHWQHPaXrkzXpNcAmSn3CW98i2A4pFyjYqjibngZpMYEiHu9PofKZo4Tk7UF1nwvyRrwZGDMkGHQ4iPfastXx1M2nrLEymbx9xg5Vsg1Kf5C7UXCoPKM9zGd8u6utG8ddCaDQnzdERhKwr6Q6evK1R8VoA7CYdDAowhjFTwhTEE5vGop5uMk5Dr8Avq6Dag6XjqNyH1Y9pTMRv3CK474eMzbP9nyuefts4quUA2HEzwErjxpxSF5RuKGXx9zj9NRDhzCCV8PWSouCDmrkrKcRGwk7unUJCmaaVurXpGyX83dzthN3EAGyWRU7Ts1Z2JmBqtfDrmJA4eGaZcfVR3wpxEYb8jBiJyggef59WPRJTt43NEApy7wPnUjEkYGoEEDsar6P4Gtam5sjwMNtUzU81hUnrUG6MK82y9R4bX98pje42XXQhUExkRK8xocazpLQzf8JCmtYbJHS6JhvFryRE9mJFATaJrRnqeRFm21bQ4VVrJz14r2j6RT6JCFZu4XcFramSeRY5Adisconnected

while in the shell I read: Answer recieved, connecting... but nothing happens.