OpenFlow: Error inside Docker (JsonWebTokenError: invalid signature)

OpenRPA version: 1.4.51
OpenFlow version: 1.5
Using app.openiap.io or self hosted openflow: https://openflow.codecenter.info
Error message: JsonWebTokenError: invalid signature
Screenshot or video: N/A
Attach a simple workflow from OpenRPA or NodeRED that reproduces the error/issue: N/A

Hi @Allan_Zimmermann

I was checking the logs of docker via portainer, I saw that “api” container constantly display this error message:

17:11:37.826 [Message              ][EnsureJWT]             invalid signature
JsonWebTokenError: invalid signature
    at /data/node_modules/jsonwebtoken/verify.js:133:19
    at getSecret (/data/node_modules/jsonwebtoken/verify.js:90:14)
    at module.exports [as verify] (/data/node_modules/jsonwebtoken/verify.js:94:10)
    at Crypt.verityToken (/data/Crypt.js:154:36)
    at Message.EnsureJWT (/data/Messages/Message.js:222:77)
    at /data/Messages/Message.js:342:37
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
JsonWebTokenError: invalid signature
    at /data/node_modules/jsonwebtoken/verify.js:133:19
    at getSecret (/data/node_modules/jsonwebtoken/verify.js:90:14)
    at module.exports [as verify] (/data/node_modules/jsonwebtoken/verify.js:94:10)
    at Crypt.verityToken (/data/Crypt.js:154:36)
    at Message.EnsureJWT (/data/Messages/Message.js:222:77)
    at /data/Messages/Message.js:342:37
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
17:11:37.830 [Message              ][EnsureJWT]             invalid signature
JsonWebTokenError: invalid signature
    at /data/node_modules/jsonwebtoken/verify.js:133:19
    at getSecret (/data/node_modules/jsonwebtoken/verify.js:90:14)
    at module.exports [as verify] (/data/node_modules/jsonwebtoken/verify.js:94:10)
    at Crypt.verityToken (/data/Crypt.js:154:36)
    at Message.EnsureJWT (/data/Messages/Message.js:222:77)
    at /data/Messages/Message.js:342:37
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
JsonWebTokenError: invalid signature
    at /data/node_modules/jsonwebtoken/verify.js:133:19
    at getSecret (/data/node_modules/jsonwebtoken/verify.js:90:14)
    at module.exports [as verify] (/data/node_modules/jsonwebtoken/verify.js:94:10)
    at Crypt.verityToken (/data/Crypt.js:154:36)
    at Message.EnsureJWT (/data/Messages/Message.js:222:77)
    at /data/Messages/Message.js:342:37
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[server][SND][1093][nfx1llea9][    ][ping] 

_azureuser-api-1_logs.json (5.8 KB)

Is there a reason why this is happening? And How to solve it?
Thanks.

You are using a jwt tokem issuedby an openflow using a different encryption key ( aes_secret )

Was that the issue, or do you still have issues?

Hi @Allan_Zimmermann
The problem still been displaying… I don’t know what causing it.

could you tell where you are getting it ?
I mean, how did you make it do it ? what do you change ?
what do you mean it also happens with app.openiap.io … i see tons of people logged on, so what did you do different ?

@Allan_Zimmermann Apologies for my delayed response.
It’s happening only in my self hosted openflow: https://openflow.codecenter.info and the only thing I did different was make some changes in the yaml file (to be exactly like the one you have in github) and then run sudo docker-compose up -d

But it seems is not affecting anything in openflow, just displaying the invalid signature message in api container.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.