Skip to content

Inconsistent browser notification when testing with postman and git bash #3

Open
@mkthaw14

Description

@mkthaw14

Sometime, the notification can be reached to browser but not in other time.

push >>> HTTP/1.1 201 Created [Location: https://fcm.googleapis.com/0:1698742625827058%e609af1cf9fd7ecd, X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, X-Xss-Protection: 0, Date: Tue, 31 Oct 2023 08:57:05 GMT, Content-Length: 0, Content-Type: text/html; charset=UTF-8, Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000] [Content-Length: 0,Chunked: false]

This is returned from :
HttpResponse response = pushService.send(notification);
System.out.println("push >>> " + response.toString());

Tested browser : chrome

When testing with microsoft edge, it returned

push >>> HTTP/1.1 401 Unauthorized [Content-Length: 0, X-WNS-MSG-ID: 537564E63364E076, X-WNS-DEBUG-TRACE: PN1PEPF00001BE9, MS-CV: u2hck1IE+0SJuCalEnb7aA.0, Strict-Transport-Security: max-age=31536000; includeSubDomains, WWW-Authenticate: bearer error="invalid_request",error_description="Malformed Crypto-Key Value", Date: Tue, 31 Oct 2023 08:57:05 GMT] [Content-Length: 0,Chunked: false]

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