IGNF / apicarto

Faire appel à l'information géographique pour simplifier les démarches
Other
12 stars 4 forks source link

Error API RPG #77

Closed paul-carteron closed 1 year ago

paul-carteron commented 1 year ago

Bonjour, L'API RPG renvoi systématiquement une erreur.

Exemple requête : https://apicarto.ign.fr/api/rpg/v1?annee=2012&geom=%7B%22type%22%3A%20%22Point%22%2C%22coordinates%22%3A%5B-1.691634%2C48.104237%5D%7D

Réponse :

{
  "message": "unable to verify the first certificate",
  "name": "Error",
  "stack": "Error: unable to verify the first certificate\n    at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34)\n    at TLSSocket.emit (node:events:513:28)\n    at TLSSocket._finishInit (node:_tls_wrap:953:8)\n    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12)",
  "config": {
    "url": "https://wxs.ign.fr/agriculture/geoportail/wfs",
    "method": "post",
    "data": "cql_filter=INTERSECTS(the_geom,POINT%20(48.104237%20-1.691634))",
    "headers": {
      "Accept": "application/json",
      "Content-Type": "application/x-www-form-urlencoded",
      "User-Agent": "apicarto",
      "Referer": "https://apicarto.ign.fr/api/doc/rpg",
      "Content-Length": 63
    },
    "proxy": false,
    "params": {
      "service": "WFS",
      "version": "2.0.0",
      "request": "GetFeature",
      "typename": "RPG.2012:rpg_2012",
      "outputFormat": "application/json",
      "srsName": "CRS:84",
      "count": 1000,
      "startIndex": 0
    },
    "transformRequest": [
      null
    ],
    "timeout": 0,
    "responseType": "text",
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    }
  },
  "code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE"
}
vinsag commented 1 year ago

Bonjour, Il y a actuellement des problèmes sur les flux WFS du Géoportail depuis 30 minutes. Des investigations sont en cours pour résoudre le problème.

Bien Cordialement,

vinsag commented 1 year ago

Bonjour, Le service RPG est de nouveau disponible. Je ferme donc le ticket. Vincent