notify_push icon indicating copy to clipboard operation
notify_push copied to clipboard

unable to authenticate to notify_push via websocat

Open CoolnsX opened this issue 3 months ago • 1 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

I am trying to use websocat to use with notify_push to subscribe to events,

Steps to reproduce

  1. run this command websocat <WEBSOCKET_URL>, your cursor moves to next line.
  2. Just type username and then press enter, then type the password/app-password and then enter
  3. the websocket returns err: Invalid credentials

Expected behaviour

The websocket should successfully connect and return authenticated.

Actual behaviour

When we perform above steps in shell and check the webserver logs, this is what I get --

admin\x0A [05/Nov/2025:18:51:39 +0530] "GET /index.php/apps/notify_push/uid HTTP/1.1" 401 24 "-" "-"

that \x0A is getting added to admin, I think it's \n getting added

but in case of connecting via test_client

admin [05/Nov/2025:18:51:39 +0530] "GET /index.php/apps/notify_push/uid HTTP/1.1" 200 5 "-" "-"

Server configuration

Web server: Nginx

Database: MariaDB

PHP version: 8.3.27

Nextcloud version: 32.0.1

List of activated apps It's not related to any app
Nextcloud configuration not related to configuration

Browser

Browser name: curl and websocat Browser version: curl 8.16.0 and websocat 1.14.0 Operating system: Linux

Browser log Not needed

CoolnsX avatar Nov 05 '25 13:11 CoolnsX

Or can just use test_client for getting websocket messages

CoolnsX avatar Nov 05 '25 14:11 CoolnsX