Skip to content

Error 500 object has no attribute 'encode' #225

@maudrid

Description

@maudrid

❓ Question

AirNotifier 2.x

Hi there.
I'm getting an error when using the push API.
The message is still pushed and arrives at the destination, but the API Response is 500.
Here is a debug log:

2020-11-30 15:28:47,306 - DEBUG - AirNotify POST URL: http://airnotifier:8801/api/v2/push
2020-11-30 15:28:47,307 - DEBUG - AirNotify Payload: {'device': 'fcm', 'token': 'my registered token', 'alert': 'My Message', 'badge': 1}
2020-11-30 15:28:47,641 - WARNING - Failed to send AirNotify notification: Internal server error., error=500.
2020-11-30 15:28:47,641 - DEBUG - Response Details:
b'{"error": "\'bytes\' object has no attribute \'encode\'"}'

Any idea what this may be?

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