Skip to content

405 (Method Not Allowed) when calling presence API #3

@dkokic

Description

@dkokic

It looks surprising that the server identified a new user as @user:matrix.kodra.net instead of @koki:matrix.kodra.net - maybe that's causing the problem.

/register [1] : {"data":{"flows":[{"type":"m.login.password"},{"type":"m.login.recaptcha"}]},"status":200,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://localhost:5555/_matrix/client/api/v1/register","params":{},"headers":{"Accept":"application/json, text/plain, */*"}},"statusText":"OK"}
matrix-service.js:300 Using flow {"type":"m.login.recaptcha"}
matrix-service.js:225 doRegisterLogin >>> m.login.recaptcha
matrix-service.js:309 login response: {"user_id":"@user:matrix.kodra.net","access_token":"rWiLmrhYcVYMQlCm"}
event-stream-service.js:199 [EventStream] resume {"from":"END","shouldPoll":true,"isActive":false}
presence-service.js:76 mPresence - New state: online
event-reaper-service.js:96 Viewing => undefined
:5555/_matrix/client/api/v1/presence/%40user%3Amatrix.kodra.net/status?access_token=rWiLmrhYcVYMQlCm:1 PUT http://localhost:5555/_matrix/client/api/v1/presence/%40user%3Amatrix.kodra.net/status?access_token=rWiLmrhYcVYMQlCm 405 (Method Not Allowed)
presence-service.js:86 mPresence - Failed to send new presence state: {"data":{"timestamp":1429642549313,"status":405,"error":"Method Not Allowed","exception":"org.springframework.web.HttpRequestMethodNotSupportedException","message":"Request method 'PUT' not supported","path":"/_matrix/client/api/v1/presence/%40user%3Amatrix.kodra.net/status"},"status":405,"config":{"method":"PUT","transformRequest":[null],"transformResponse":[null],"url":"http://localhost:5555/_matrix/client/api/v1/presence/%40user%3Amatrix.kodra.net/status","params":{"access_token":"rWiLmrhYcVYMQlCm"},"data":{"presence":"online"},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8"},"timeout":35000},"statusText":"Method Not Allowed"}
angular.min.js:86 GET http://localhost:5555/_matrix/client/api/v1/initialSync?access_token=rWiLmrhYcVYMQlCm&limit=8 404 (Not Found)b @ angular.min.js:86m @ angular.min.js:82$get.f @ angular.min.js:80(anonymous function) @ angular.min.js:112$get.l.$eval @ angular.min.js:125$get.l.$digest @ angular.min.js:122$get.l.$apply @ angular.min.js:126l @ angular.min.js:81P @ angular.min.js:85w.onload @ angular.min.js:86
angular.min.js:86 GET http://localhost:5555/_matrix/client/api/v1/voip/turnServer?access_token=rWiLmrhYcVYMQlCm 404 (Not Found)b @ angular.min.js:86m @ angular.min.js:82$get.f @ angular.min.js:80(anonymous function) @ angular.min.js:112$get.l.$eval @ angular.min.js:125$get.l.$digest @ angular.min.js:122$get.l.$apply @ angular.min.js:126l @ angular.min.js:81P @ angular.min.js:85w.onload @ angular.min.js:86
event-stream-service.js:175 [EventStream] initialSync failed, retrying...(anonymous function) @ event-stream-service.js:175(anonymous function) @ angular.min.js:112$get.l.$eval @ angular.min.js:125$get.l.$digest @ angular.min.js:122$get.l.$apply @ angular.min.js:126l @ angular.min.js:81P @ angular.min.js:85w.onload @ angular.min.js:86
matrix-call.js:72 Failed to get TURN URIs

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