Skip to content

All requests are crashing #11

Description

@baptistesola2
  • trainline version: 0.1.0
  • Python version: 3.7
  • Operating System: macOS

Description

All requests return the same error:
requests.exceptions.ConnectionError: Status code 400 for url https://www.trainline.eu/api/v5_1/search
{"error":{"code":"no_results","message":{}}}

What I Did

It used to work very well, but for the last few days, no requests I've tried have seem to work.
I tried to use both the trainline_cli.py file and the Docker Image (downloaded today November 24th)

trainline --departure="Toulouse" --arrival="Nantes" --next=12hours
trainline --departure="Bordeaux" --arrival="Lille" --next=12hours
Complete Traceback :
Traceback (most recent call last):
File "/app/bin/trainline_cli.py", line 104, in <module>
main()
File "/app/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/app/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/app/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/app/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/app/bin/trainline_cli.py", line 75, in main
transportation_mean=transport)
File "/app/trainline/__init__.py", line 606, in search
passenger_list=passenger_list)
File "/app/trainline/__init__.py", line 129, in search
ret = c._post(url=_SEARCH_URL, post_data=post_data)
File "/app/trainline/__init__.py", line 83, in _post
status=ret.status_code, url=url, content=ret.text))
requests.exceptions.ConnectionError: Status code 400 for url https://www.trainline.eu/api/v5_1/search
{"error":{"code":"no_results","message":{}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions