Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtc: consulta retorna HTTP 200 con "Error al leer datos(-999)" #1

Open
glarrain opened this issue Jul 31, 2019 · 0 comments
Open

rtc: consulta retorna HTTP 200 con "Error al leer datos(-999)" #1

glarrain opened this issue Jul 31, 2019 · 0 comments
Labels
bug Something isn't working web-app: rtc web app del RTC (Registro de Transferencia de Crédito)

Comments

@glarrain
Copy link
Member

glarrain commented Jul 31, 2019

Problema

En la web app RTC / "CONSULTA DE CESIONES EN PERÍODO", al enviar una consulta de las "cesiones en periodo" con los siguientes parámetros se recibió una respuesta HTTP 200 cuyo texto era "Error al leer datos(-999)".

Parámetros:

  • Tipo de Consulta (TIPOCONSULTA): "Está obligado a pagar (Consulta para el Deudor)" (0)
  • Tipo de Salida del Archivo generado (TXTXML): TXT
  • Periodo
    • Fecha inicial (DESDE): 01072019
    • Fecha final (HASTA): 30072019

Antecedentes

  • Fecha y hora: 2019-07-31T01:01:44Z (intentado nuevamente 2019-07-31T21:00:09Z
  • Browser: Google Chrome Version 75.0.3770.142 (Official Build) (64-bit)
  • OS: Ubuntu 16.04.6 LTS (xenial) amd64

Web app:

Detalle

Curl equivalente (dado por Chrome):

curl 'https://palena.sii.cl/cgi_rtc/RTC/RTCConsultaCesiones.cgi' \
    -X POST \
    -H 'Connection: keep-alive' \
    -H 'Pragma: no-cache' \
    -H 'Cache-Control: no-cache' \
    -H 'Origin: https://palena.sii.cl' \
    -H 'Upgrade-Insecure-Requests: 1' \
    -H 'Content-Type: application/x-www-form-urlencoded' \
    -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36' \
    -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' \
    -H 'Referer: https://palena.sii.cl/cgi_rtc/RTC/RTCConsultaCesionesHtml.cgi' \
    -H 'Accept-Encoding: gzip, deflate, br' \
    -H 'Accept-Language: en-US,en;q=0.9,es-CL;q=0.8,es;q=0.7' \
    -H 'Cookie: s_cc=true; NETSCAPE_LIVEWIRE.rut=***; NETSCAPE_LIVEWIRE.rutm=***; NETSCAPE_LIVEWIRE.dv=***; NETSCAPE_LIVEWIRE.dvm=***; NETSCAPE_LIVEWIRE.clave=***; NETSCAPE_LIVEWIRE.mac=***; NETSCAPE_LIVEWIRE.exp=20190730220524; NETSCAPE_LIVEWIRE.sec=0000; NETSCAPE_LIVEWIRE.lms=120; TOKEN=***; CSESSIONID=***; RUT_NS=***; DV_NS=***; NETSCAPE_LIVEWIRE.locexp=Wed%2C%2031%20Jul%202019%2002%3A05%3A24%20GMT; MISII={"p":false}; EMG=***; rxVisitor=***; dtSa=-; dtLatC=17; dtCookie=***; dtPC=***; rxvt=***; s_sq=***' \
    --data 'TIPOCONSULTA=0&TXTXML=TXT&DESDE=01072019&HASTA=30072019' \
    --compressed

Response: HTTP 200 OK

Response headers:

Connection: Keep-Alive
Content-Language: es
Content-Length: 29
Content-Security-Policy: default-src https: data: 'unsafe-inline' 'unsafe-eval'
Content-Type: text/html; charset=ISO-8859-1
Date: Wed, 31 Jul 2019 01:01:44 GMT
Keep-Alive: timeout=5
Server: version 1.1 version 1.2 Apache
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block

Response body:

<br>Error al leer datos(-999)
@glarrain glarrain added bug Something isn't working web-app: rtc web app del RTC (Registro de Transferencia de Crédito) labels Jul 31, 2019
@glarrain glarrain changed the title rtc: endpoint retorna HTTP 200 con "Error al leer datos(-999)" rtc: consulta retorna HTTP 200 con "Error al leer datos(-999)" Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web-app: rtc web app del RTC (Registro de Transferencia de Crédito)
Projects
None yet
Development

No branches or pull requests

1 participant