Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: panic serving [::1]:58222: TypeError: provided value is not a valid enum value of type SDPType: '0' is not a valid enum value of type SDPType #35

Open
gedw99 opened this issue Jul 18, 2024 · 0 comments

Comments

@gedw99
Copy link

gedw99 commented Jul 18, 2024

Your environment.

  • Version: latest with
  • Browser: safari Mac latest
  • Other Information - stacktraces, related issues, suggestions how to fix, links for us to have context

What did you do?

I upgraded the code to the latest version of webrtc pion...

´´´go
module github.com/pion/webrtc-voicemail

go 1.13

require github.com/pion/webrtc/v3 v3.2.47


Then ran it !

```sh
./webrtc-voicemail 
Server has started on http://localhost:8080
2024/07/18 22:16:41 http: panic serving [::1]:58222: TypeError: provided value is not a valid enum value of type SDPType: '0' is not a valid enum value of type SDPType
goroutine 6 [running]:
net/http.(*conn).serve.func1()
        /opt/homebrew/opt/go/libexec/src/net/http/server.go:1903 +0xb0
panic({0x101443040?, 0x140000ac5a0?})
        /opt/homebrew/opt/go/libexec/src/runtime/panic.go:770 +0x124
main.createVoicemail({0x1014c2c40, 0x140000d20e0}, 0x140000ce000)
        /Users/apple/workspace/go/src/junk/webrtc-voicemail/main.go:70 +0x408
net/http.HandlerFunc.ServeHTTP(0x10175ee10?, {0x1014c2c40?, 0x140000d20e0?}, 0x140001adb00?)
        /opt/homebrew/opt/go/libexec/src/net/http/server.go:2171 +0x38
net/http.(*ServeMux).ServeHTTP(0x10?, {0x1014c2c40, 0x140000d20e0}, 0x140000ce000)
        /opt/homebrew/opt/go/libexec/src/net/http/server.go:2688 +0x1a4
net/http.serverHandler.ServeHTTP({0x1014c1a80?}, {0x1014c2c40?, 0x140000d20e0?}, 0x6?)
        /opt/homebrew/opt/go/libexec/src/net/http/server.go:3142 +0xbc
net/http.(*conn).serve(0x1400017e240, {0x1014c3d28, 0x1400007fce0})
        /opt/homebrew/opt/go/libexec/src/net/http/server.go:2044 +0x508
created by net/http.(*Server).Serve in goroutine 1
        /opt/homebrew/opt/go/libexec/src/net/http/server.go:3290 +0x3f0

What did you expect?

voicemail saved to the voicemail folder when I pressed the button in the web gui :)
I presume that it records a voicemail ...

What happened?

See the error above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant