question

cuongtm2 avatar image
cuongtm2 asked bryanvargas commented

Could not verify authentication token with COS server

I'm trying to connect to a Flex 3 terminal running on Emulator in Android Studio, connected to the sandbox account (cuongtm2@smartosc.com).

I can download information about the list of devices but I cannot send e.g. a message to the device using the API: "https://sandbox.dev.clover.com/connect/v1/print/text". I use tokens from Account & Setup/API Tokens with full permissions

{
  "text": [
    "Hello World"
  ]
}

I get error 500 as below.

I haven't found any information on what it means. How should I interpret this message? How to solve the problem?

{
  "message": "Could not verify authentication token with COS server.",
  "requestId": "8acae36f-33566",
  "requestType": "PRINT_TEXT_ON_DEVICE",
  "type": "ERROR"
}
REST APIAPI Token
6 comments
10 |2000

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

bryanvargas avatar image bryanvargas ♦♦ commented ·
You need an actual devkit for this
0 Likes 0 ·
cuongtm2 avatar image cuongtm2 bryanvargas ♦♦ commented ·
I tried with an emulator device and actual device has the same problem
0 Likes 0 ·
cuongtm2 avatar image cuongtm2 bryanvargas ♦♦ commented ·

How can I add dev kit from emulator and actual device

0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ cuongtm2 commented ·

Please order a devkit here: https://cloverdevkit.com/, the request won't work on emulator, they have limitations with the APIs.

0 Likes 0 ·
cuongtm2 avatar image cuongtm2 bryanvargas ♦♦ commented ·

I checked in production account is same error.
Email: gtpuse@yahoo.com.

Clover device id: C030UQ72810494

0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ cuongtm2 commented ·
please verify your token and run the request again
0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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