public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.
ISC License
269 stars 54 forks source link

DB: server errors with stop() and ver > 1.16 #288

Closed gaudes closed 1 year ago

gaudes commented 1 year ago

Dear Janis,

since the weekend the users of the ioBroker Adapter get errors. We use sentry for error reporting, before disabling there were 180 000 errors from different users.

Here an example error, message is always the same:

Writer error: root.svcResL.svcResL.res.common.locL.locL.gridL.gridL.nCols(no value assigned)

image

I'm still using the last 5.x version, because I had to migrate to TypeScript.

Any ideas ?

Thanks and regards, Ralf

gaudes commented 1 year ago

As you wrote in the ioBroker forum I've tested different useragents, same error.

Station search is working and giving results.

derhuerst commented 1 year ago

Can you provide a call that reproduces the error, i.e. a specific hafas-client method and arguments?

gaudes commented 1 year ago

I'm verifying the stations the user has entered for the route with aResult = await this.helper.hClient.stop(eBhf); Example eBhf is 8000174

derhuerst commented 1 year ago

It seems like HaCon, the company behind HAFAS, broke stop() (LocDetails) requests with protocol versions (ver) >= 1.17.

derhuerst commented 1 year ago

I have published a workaround (8faf8ba) as hafas-client@6.0.4. Will back-port it to hafas-client@5 soon.

derhuerst commented 1 year ago

Backport published as hafas-client@5.26.4.