link-it / govway

API Gateway per la Pubblica Amministrazione italiana
https://govway.org
GNU General Public License v3.0
53 stars 10 forks source link

Riscontrato errore durante la negoziazione del token con PDND #147

Closed mfortini closed 8 months ago

mfortini commented 9 months ago

Non capisco se questo errore sia relativo alla configurazione PDND o a quella di interazione con l'eService

image

andreapoli commented 9 months ago

Buongiorno @mfortini,

l'errore json riportato nel log con codice di trasporto http 400 viene generato dalla PDND al momento dello stacco del voucher.

Prova ad esaminare il tab 'Informazioni Mittente' dove dovrebbero esserci maggiori informazioni riguardanti la negoziazione in corso.

mfortini commented 9 months ago
{
  "type" : "retrieved_token",
  "request" : {
    "policy" : "api-pdnd",
    "transactionId" : "c14f1a56-884d-11ee-a66d-0242ac110002",
    "grantType" : "rfc7523_x509",
    "clientId" : "Test e-service Mur",
    "jwtClientAssertion" : {
      "token" : "XXXXX.==SIGNATURE=="
    },
    "endpoint" : "https://auth.uat.interop.pagopa.it/token.oauth2",
    "prepareRequest" : 1700558654019,
    "sendRequest" : 1700558654022,
    "receiveResponse" : 1700558654176,
    "parseResponse" : 1700558654177,
    "processComplete" : 1700558654177
  },
  "valid" : false,
  "rawResponse" : "{\"correlationId\":\"ca9bbdac-27be-43a6-8f10-8b83d3eba73f\",\"errors\":[{\"code\":\"015-0008\",\"detail\":\"Unable to generate a token for the given request\"}],\"status\":400,\"title\":\"The request contains bad syntax or cannot be fulfilled.\",\"type\":\"about:blank\"}",
  "httpResponseCode" : "400",
  "errorDetails" : "Risposta del servizio di negoziaz{
  "type" : "retrieved_token",
  "request" : {
    "policy" : "api-pdnd",
    "transactionId" : "c14f1a56-884d-11ee-a66d-0242ac110002",
    "grantType" : "rfc7523_x509",
    "clientId" : "Test e-service Mur",
    "jwtClientAssertion" : {
      "token" : "XXXX.==SIGNATURE=="
    },
    "endpoint" : "https://auth.uat.interop.pagopa.it/token.oauth2",
    "prepareRequest" : 1700558654019,
    "sendRequest" : 1700558654022,
    "receiveResponse" : 1700558654176,
    "parseResponse" : 1700558654177,
    "processComplete" : 1700558654177
  },
  "valid" : false,
  "rawResponse" : "{\"correlationId\":\"ca9bbdac-27be-43a6-8f10-8b83d3eba73f\",\"errors\":[{\"code\":\"015-0008\",\"detail\":\"Unable to generate a token for the given request\"}],\"status\":400,\"title\":\"The request contains bad syntax or cannot be fulfilled.\",\"type\":\"about:blank\"}",
  "httpResponseCode" : "400",
  "errorDetails" : "Risposta del servizio di negoziazione token non valida: Connessione terminata con errore (codice trasporto: 400): {\"correlationId\":\"ca9bbdac-27be-43a6-8f10-8b83d3eba73f\",\"errors\":[{\"code\":\"015-0008\",\"detail\":\"Unable to generate a token for the given request\"}],\"status\":400,\"title\":\"The request contains bad syntax or cannot be fulfilled.\",\"type\":\"about:blank\"}"
}ione token non valida: Connessione terminata con errore (codice trasporto: 400): {\"correlationId\":\"ca9bbdac-27be-43a6-8f10-8b83d3eba73f\",\"errors\":[{\"code\":\"015-0008\",\"detail\":\"Unable to generate a token for the given request\"}],\"status\":400,\"title\":\"The request contains bad syntax or cannot be fulfilled.\",\"type\":\"about:blank\"}"
}
andreapoli commented 9 months ago

Perfetto dovresti avere tutte le informazioni necessarie per chiedere supporto a PDND sulla mancata negoziazione del token.