question

Dyego Costa avatar image
Dyego Costa asked sophia answered

How to troubleshoot "connection denied" error with cause "undefined"?

Apparently with no code changed I just started to receive an "connection denied" error, no sale is working now. The following is returned by the JS SDK:

{name: "CloverError", code: "connection denied", message: "D12FJD4DRSPRV", cause: undefined}

Is there a problem with Clover API? How can I troubleshoot this?

Clover MiniSale
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hammer avatar image
hammer answered

This indicates that there is an existing connection to the device, identified by D12FJD4DRSPRV. When a connection is made to a device, it is possible to set a 'friendlyId' using the configuration passed to the Clover() object. If this is not set, then an id is generated and used. In this case the 'friendlyId' of the connection that is reportedly currently connected is D12FJD4DRSPRV.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sophia avatar image
sophia answered

answered by Mike in the comments section.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community