public-transport / hafas-client

JavaScript client for HAFAS public transport APIs.
ISC License
277 stars 53 forks source link

SBB endpoint seems to be shut off #245

Closed gaudes closed 3 years ago

gaudes commented 3 years ago

Hi Janis,

once more I have an issue with SBB profile.

User reports that station search is not working.

I use the locations function. Here some details about the reported error:

Error.message | invalid response content-type: text/html; charset=UTF-8
Error.response | {size: 0, timeout: 0}
Error.stack | Error: invalid response content-type: text/html; charset=UTF-8     at /opt/iobroker/node_modules/hafas-client/lib/request.js:127:17     at processTicksAndRejections (internal/process/task_queues.js:95:5)     at fHelpers.getStation (/opt/iobroker/node_modules/iobroker.fahrplan/lib/helper.js:134:20)     at Fahrplan.onMessage (/opt/iobroker/node_modules/iobroker.fahrplan/main.js:94:28)

Searched station is "bassersdorf"

Thanks and regards,

Ralf

derhuerst commented 3 years ago

Can you reproduce the error?

gaudes commented 3 years ago

Currently not.

Problem occured 115 times at 5-6 users the last 30 days.

In Sentry I've seen that it occured also with DB profile.

gaudes commented 3 years ago

I've just asked the issue creator if problem is temporary or permanently fails on his computer.

derhuerst commented 3 years ago

I assume that this is due to some internal backend error that causes HAFAS's HTTP proxy to generate an HTML error page. It would really fit a pattern, as they disobey most HTTP API best practices.

derhuerst commented 3 years ago

Unfortunately, it seems like the SBB endpoint is shut off. See also https://github.com/schildbach/public-transport-enabler/issues/381 .

derhuerst commented 3 years ago

I'm going to close this Issue. Please re-open if you come across an SBB HAFAS endpoint.