derhuerst / bvg-rest

An HTTP API for Berlin & Brandenburg public transport.
https://v6.bvg.transport.rest/
ISC License
84 stars 4 forks source link

API Not Working Since Monday (05.08.2024) #23

Closed ippen closed 1 month ago

ippen commented 2 months ago

Description:

Since Monday, the API has stopped working. This issue also affects the API Playground, which is currently broken. Additionally, I attempted to use the provided Docker image but encountered an error when accessing the API on localhost.

Steps to Reproduce:

  1. Run the provided Docker image using the following command:

    docker run -d -p 3000:3000 derhuerst/bvg-rest:6
  2. Use the following curl command to access the API on localhost:

    curl 'localhost:3000/locations/nearby?latitude=52.52725&longitude=13.4123'

Observed Behavior:

The following error message is returned:

{
   "message": "CLIENTVERSION: HCI Core: Invalid client version",
   "isHafasError": true,
   "code": null,
   "isCausedByServer": false,
   "hafasCode": "CLIENTVERSION",
   "url": "https://bvg-apps-ext.hafas.de/bin/mgate.exe?",
   "hafasResponseId": "dhhubzxk2xqah74k",
   "hafasMessage": "HCI Core: Invalid client version"
}

Appreciation and Engagement:

I greatly appreciate the work that goes into maintaining this project. It has been incredibly useful for my small widget using KWGT to show me the time of my bus, which relies on this API. You can see the project here.

I am also interested in supporting the project more and can sponsor via GitHub.

Thank you!

matriphe commented 2 months ago

I suspected that BVG changed their API due to their new mobile app. I deployed https://github.com/public-transport/hafas-rest-api on my local and it returned a similar response:

Path: /stops/{id}/departures

{
  "message": "CLIENTVERSION: HCI Core: Invalid client version",
  "isHafasError": true,
  "code": null,
  "isCausedByServer": false,
  "hafasCode": "CLIENTVERSION",
  "url": "https://bvg-apps-ext.hafas.de/bin/mgate.exe?",
  "hafasResponseId": "gwm84nccw8iugm4s",
  "hafasMessage": "HCI Core: Invalid client version"
}

Using the https://v6.bvg.transport.rest/ also returned 503.

matriphe commented 2 months ago

I checked VBB endpoint from issue #22 and it returns the correct response!

derhuerst commented 1 month ago

Thanks for reporting. I'm closing this Issue as a duplicate of #22.