Skip to content

argument out of range (problem with device_id) #207

Open
@dmitry-saritasa

Description

@dmitry-saritasa

POST /devices/gcm

{
    "name": "Android 5.0",
    "device_id": "a54eb38370070a1b",
    "registration_id": "....goes here..."
}

produces

error at /api/v1/devices/gcm/
argument out of range
Request Method: POST
Request URL:    http://localhost:8000/api/v1/devices/gcm/
Django Version: 1.8.4
Exception Type: error
Exception Value:    
argument out of range
Exception Location: F:\_Projects\p\.venv\p\lib\site-packages\push_notifications\fields.py in to_python, line 74

stack:
django 1.8.4, DRF 3.1.3, postgres 9.4 DB, psycopg2.6

what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions