Entity not found exception

Hello,

Has anybody encountered this type of error?

I’m trying to load data for each day from the Journey end point and store it as a CSV. When I store the CSVs and open them, this is what is saved inside.

,$type,timestampUtc,exceptionType,httpStatusCode,httpStatus,relativeUri,message
0,“Tfl.Api.Presentation.Entities.ApiError, Tfl.Api.Presentation.Entities”,2024-01-30T18:13:14.0649367Z,EntityNotFoundException,404,NotFound,/Journey?date=2023-01-01,Resource not found: http://api:8001/Journey?date=2023-01-01

Do you have any suggestions on how I may go about fixing this issue?

Thanks!

Hello and welcome to the forum!

I suspect that the URL you are making requests to is incorrect. Please ensure that:

  • Your request URL starts with https://api.tfl.gov.uk/Journey/JourneyResults/
  • You include both a from and a to argument
  • Your date argument is formatted in yyyymmdd format (not yyyy-mm-dd)
  • Your date is not more than seven days in the past

Please refer to the documentation as well as the example requests. I hope this helps.

thanks for your solutions
do we need more requests?