NodeFactoryIo / gitmythx

Github app for running mythx checksuite
MIT License
2 stars 1 forks source link

Failed in submitting a JWT refresh request: Bad Request (HTTP status code: 400) #1

Open mpetrunic opened 5 years ago

mpetrunic commented 5 years ago

Issue by b-mueller Wednesday May 01, 2019 at 10:34 GMT Originally opened as https://github.com/mpetrunic/gitmythx/issues/1


Description

JWT refresh requests appear to fail after the first analysis.

I ran the following PR twice with 2 contracts in the config:

https://github.com/b-mueller/mythx-test/pull/1

The first run returned one result and one error:

https://gitmythx.nodefactory.io/github/check/status/115719505

The second run returned 2 errors:

https://gitmythx.nodefactory.io/github/check/status/115721174

Expected behavior

Access token should be successfully refreshed.

mpetrunic commented 5 years ago

Comment by mpetrunic Wednesday May 01, 2019 at 20:13 GMT


It seems that armlet sometimes fails to refresh tokens even though it contains valid tokens. You should be able to refresh them here: https://gitmythx.nodefactory.io/setup

mpetrunic commented 5 years ago

Comment by mpetrunic Wednesday May 01, 2019 at 20:15 GMT


Can armlet even refresh tokens after they expire? From code I figured out it can, if not I guess I should add some cron job to periodically refresh tokens.