Skip to content

Cannot connect to DeviceHive Java 1.3 websocket endpoints #9

@sorjef

Description

@sorjef

A 403 Unauthorized error is thrown when websocket is opened inside of the WebSocketChannel class (line 103).

This seems to be because a WebSocket4Net 0.10 version sends empty Origin header if the value is not provided. Also the glassfish server version for DeviceHive Java 1.3 does not support empty origin header.

The issue can be possibly fixed by updating the WebSocket4Net library to 0.11 version (the issue is fixed there), or by constructing and passing a valid originparameter to the WebSocket constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions