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

Panic when calling .ThreadID #233

Open
unitoflazy opened this issue Oct 4, 2024 · 0 comments
Open

Panic when calling .ThreadID #233

unitoflazy opened this issue Oct 4, 2024 · 0 comments

Comments

@unitoflazy
Copy link

Please ensure that you are using the latest version of the master branch before filing an issue.

Also make sure to include logs (if applicable) to help reproduce the issue by setting the GODEBUG=http2debug=2 env var.

  1. What version of Go are you using? go.1.22.0

  2. What OS and processor architecture are you using? arm64 darwin

  3. What did you do?
    Passed this variable to a function apnsPayload := payload.NewPayload()
    Calling apnsPayload.ThreadID() from function parameter apnsPayload of type *payload.Payload

  4. What did you expect to see?
    No panic

  5. What did you see instead?
    Panic interface conversion: interface {} is map[string]interface {}, not *payload.aps

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