Skip to content

Activity.MarkNotificationsRead fails with 400 bad request. #402

@scbizu

Description

@scbizu

Hello there .I have a problem that when I use MarkNotificationsRead() method to mark some notifications as read ,there is always an error ..

My code :

    readTime := time.Date(2016, 07, 10, 18, 00, 00, 0, time.UTC)
    Res, Reserr := client.Activity.MarkNotificationsRead(readTime)

And the "bad request " is:
PUT https://api.github.com/notifications?last_read_at=2016-07-10T18:00:00Z

And the error is :
PUT https://api.github.com/notifications?last_read_at=2016-07-10T18:00:00Z: 400 Problems parsing JSON []

I compare it with the Github API's timestamp format ,but ,I cannot find anything wrong .Could U please tell me why ?THX .

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions