Why do I fail to retrieve a document from a publishing API?

Why do I fail to retrieve a document from a publishing API?

Query syntax

First, check that there are no syntax errors in your query:

  • the short name of the publication API

  • the registration number of the line/stop area/company

  • the short name of the document type

Document unavailable

When you wish to retrieve your document, two types of errors may occur:

  • 404 : the document doesn’t exist

  • 5XX : application error 

Check the integrity of the document data.

  • Check that the document has a non-empty file (by downloading the file from the Chouette interface).

  • Check that the validity date used in the request matches the date displayed on Chouette

  • If the request doesn’t precise the validity date, check on Chouette interface if the document is not obsolete

  • Check that the document has a file of the same type as the short name entered in the request.

Check the integrity of the data in the model associated with the document

  • Check that the target registration number is unique

Check that the model associated with the document is included in the aggregated offer

  • Check that the line/stop area/company is included in your aggregated offer