tgvmax-bot icon indicating copy to clipboard operation
tgvmax-bot copied to clipboard

Error when adding cron (frontend)

Open TBG-FR opened this issue 2 years ago • 2 comments

When trying to add a cron through the frontend, the console shows the following error (but the cron is added)

vue.esm.js:1897 TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
    at from (<anonymous>)
    at Gu7T.e.default (vendor.fe5c74e1b9a016e6c47d.js:7:99303)
    at a.<anonymous> (app.ca14327699a7dc293e52.js:1:15313)
    at w (vendor.fe5c74e1b9a016e6c47d.js:13:9630)
    at Generator._invoke (vendor.fe5c74e1b9a016e6c47d.js:13:9418)
    at t.<computed> [as next] (vendor.fe5c74e1b9a016e6c47d.js:13:9809)
    at r (vendor.fe5c74e1b9a016e6c47d.js:13:15249)
    at vendor.fe5c74e1b9a016e6c47d.js:13:15345

I'm using the "latest version" (= git clone + Dockerfile)

TBG-FR avatar Sep 20 '22 10:09 TBG-FR

Can you provide us the network call response?

Eywek avatar Sep 20 '22 12:09 Eywek

Yes sure !

HTTP/1.1 200 OK
Server: nginx/1.21.1
Date: Tue, 20 Sep 2022 13:13:13 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 447
Connection: keep-alive
X-Powered-By: Express
Access-Control-Allow-Origin: *
ETag: W/"1bf-VIpOcxcTUfM36Os7L7miOyANugk"
{"id":8,"from":"FRPAR","to":"NLAMS","minHour":null,"minMinute":null,"maxHour":null,"maxMinute":null,"cron":"0 0 * * MON",
"maxTravels":1,"lastTravelDate":"2022-09-26","book":false,"created_at":"2022-09-20T13:13:13.000Z",
"notifier":{"id":4,"name":"TBG (Num)","type":"telegram","created_at":"2022-09-20T09:46:10.000Z"},
"booker":{"id":1,"name":"TBG","username":"*****@*****.fr","type":"trainline","created_at":"2022-09-20T09:30:06.000Z"}}

TBG-FR avatar Sep 20 '22 13:09 TBG-FR