Skip to content

Panic when calling .ThreadID #233

@unitoflazy

Description

@unitoflazy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions