{"id":2712,"date":"2023-12-20T20:24:54","date_gmt":"2023-12-20T20:24:54","guid":{"rendered":"https:\/\/developers.maplink.global\/error-messages-distance-matrix\/"},"modified":"2024-03-01T20:38:03","modified_gmt":"2024-03-01T20:38:03","slug":"error-messages-distance-matrix","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/error-messages-distance-matrix\/","title":{"rendered":"Error messages &#8211; Distance Matrix"},"content":{"rendered":"\n<p>The following table shows all the error messages that can be returned by the API in the response body:<\/p>\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Error code<\/strong><\/td><td><strong>Message<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>VALIDATION_FAILED<\/code>  or  <code>VALIDATION_ERROR<\/code><\/td><td><code>{ message: \"\", errors: [ ] }<\/code><\/td><td>Simple validation errors, the array <code>errors<\/code> contains the detailed message for each field containing an invalid value (example: <code>\"tripProfile is mandatory\"<\/code> indicates that this field is mandatory but has not been entered)<\/td><\/tr><tr><td><code>MESSAGE_FORMAT_ERROR<\/code><\/td><td>&#8211;<\/td><td>The request json has errors and could not be processed<\/td><\/tr><tr><td><code>PROFILE_NOT_FOUND<\/code><\/td><td><code>Error checking trip profile with name {tripProfileName}<\/code><\/td><td>The <code>tripProfile<\/code> with the specified name does not exist.<\/td><\/tr><tr><td><code>PROBLEM_NOT_FOUND<\/code><\/td><td>&#8211;<\/td><td>The problem with the specified id was not found.<\/td><\/tr><tr><td><code>SOLUTION_NOT_FOUND<\/code><\/td><td>&#8211;<\/td><td>The solution with the specified id was not found.<\/td><\/tr><tr><td><code>INVALID_SITE_POSITION<\/code><\/td><td><code>Some sites have not been positionned<\/code><\/td><td>Some of the sites have coordinates that could not be connected to a nearby road.<\/td><\/tr><tr><td><code>NO_PROJECTION<\/code><\/td><td><code>No projection retrieved to send to route planner<\/code><\/td><td>Similar to the error <code>INVALID_SITE_POSITION<\/code>, it has the same root cause, but can also occur occasionally when one of the internal services is unavailable<\/td><\/tr><tr><td><code>EMPTY_RESTRICTION_ZONE<\/code><\/td><td><code>The name of restriction zones are invalid or the calculation of blocked arcs was not completed yet.<\/code><\/td><td>One or more restriction zones reported do not exist (or have just been registered and have not yet been processed)<\/td><\/tr><tr><td><code>NO_COORDINATES<\/code><\/td><td><code>No coordinates found for arcs in map<\/code><\/td><td>Some of the points were passed without coordinates, or with incomplete coordinates<\/td><\/tr><tr><td><code>INVALID_CALLBACK_URL_FORMAT<\/code><\/td><td><code>{callbackValue} does not have a valid value. Example of allowed values: http:\/\/www.foo.br, https:\/\/www.foo.br...<\/code><\/td><td>Callback URL entered does not have a valid format<\/td><\/tr><tr><td><code>INVALID_SOLUTION<\/code><\/td><td><code>There is no Problem with that id<\/code><\/td><td>The problem with the specified id was not found.<\/td><\/tr><tr><td><code>ax.rp.errXXX<\/code><\/td><td>&#8211;<\/td><td>Problems with the route planner. XXX is the numerical error code.<\/td><\/tr><tr><td><code>ax.rp.err113<\/code><\/td><td><code>Not possible to create route between site A and B<\/code><\/td><td>The route planner has not found a route from point A to point B. Example case: Point A is a one-way dead-end road<\/td><\/tr><tr><td><code>Unexpected character (' ' (code 160))<\/code><\/td><td><code>Invalid json format error<\/code><\/td><td>Some invalid character or different from the API data model.<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Table of possible error messages returned by the API<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The following table shows all the error messages that can be returned by the API in the response body: Error code Message Description VALIDATION_FAILED or VALIDATION_ERROR { message: &#8220;&#8221;, errors: [ ] } Simple validation errors, the array errors contains the detailed message for each field containing an invalid value (example: &#8220;tripProfile is mandatory&#8221; indicates [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[165],"tags":[],"class_list":["post-2712","post","type-post","status-publish","format-standard","hentry","category-distance-matrix-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/comments?post=2712"}],"version-history":[{"count":1,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2712\/revisions"}],"predecessor-version":[{"id":2713,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/2712\/revisions\/2713"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=2712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=2712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=2712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}