Skip to content

Calling disconnect on a Centrifugo request throws exceptionΒ #100

@arizanovj

Description

@arizanovj

Description

There is no possibility to open issues on the related repo, so I'm doing it here instead.

When I try to call disconnect in my Auth interceptor for proxied centrifugo connections an error is thrown because of a missing field in one of the DTOs.

Exception & stacktrace:

{
    "exception": {
      "error": "[Exception] No such field reconnect as /vendor/roadrunner-php/roadrunner-api-dto/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/Disconnect.php:37",
      "stacktrace": [
        {
          "function": "Google\\Protobuf\\Internal\\Message->__construct()"
        },
        {
          "function": "RoadRunner\\Centrifugal\\Proxy\\DTO\\V1\\Disconnect->__construct()"
        },
        {
          "function": "RoadRunner\\Centrifugo\\Request\\AbstractRequest->disconnect()"
        },
        ]
   }
}

How To Reproduce

Call disconnect on a request coming from Centrifugo - RequestInterface.
The code fails here: https://github.com/roadrunner-php/centrifugo/blob/2.x/src/Request/AbstractRequest.php#L67 because the Disconnect DTO is missing the reconnect field.

Additional Info

Q A
Package Version latest
PHP version 8.3.2
Operating system Linux

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