Error 500 #10

Closed
opened 2022-03-17 18:04:35 +00:00 by sergio.pernas · 1 comment

Me esta dando este error desde el otro dia, pense que era por el cambio de firma pero ahora se supone que esta bien.

en el fichero registardor (testing)

	...
	firma=$(sign_file $registros/$file)

	local_transaction_uuid=$(jq -r '."transaction_uuid"' $registros/$file)
	curl -v --show-error -w "~%{http_code}" -X POST -H "X-Signature: $firma" -H "Content-Type: application/json" -d @$registros/$file $servidor 
	exit

Salida del comando

Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 54.39.161.205:443...
* Connected to ectomobile.sutty.nl (54.39.161.205) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=ectomobile.sutty.nl
*  start date: Jan 28 04:26:08 2022 GMT
*  expire date: Apr 28 04:26:07 2022 GMT
*  subjectAltName: host "ectomobile.sutty.nl" matched cert's "ectomobile.sutty.nl"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x85c528)
> POST /readings HTTP/2
> Host: ectomobile.sutty.nl
> user-agent: curl/7.74.0
> accept: */*
> x-signature: U1NIU0lHAAAAAQAAAGgAAAATZWNkc2Etc2hhMi1uaXN0cDI1NgAAAAhuaXN0cDI1NgAAAEEE+ufk4/juZwKrbGYfIlB7iRWZR/eJ0KeNRDB6vqiodWSdkFvPOTMGt/yNX0JKUtQ1fW9rVxsE3llfv0tNNyxhSwAAAARmaWxlAAAAAAAAAAZzaGE1MTIAAABkAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAABJAAAAIQCHhz36gvchiv62f4sdyIS5G9LbAbJO7W4f0lFB2lbEJwAAACBA15DCYHs0KllbCz7A4iuvJkQ8bAI0hhZHnkxytDwKmw==
> content-type: application/json
> content-length: 1137
> 
* We are completely uploaded and fine
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 500 
< server: nginx
< date: Thu, 17 Mar 2022 18:00:05 GMT
< content-type: text/html; charset=UTF-8
< content-length: 1635
< x-request-id: f9b0c645-780b-4009-842b-2679c17b98d0
< x-runtime: 0.028691
< 
<!DOCTYPE html>
<html>
<head>
  <title>We're sorry, but something went wrong (500)</title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <style>
  .rails-default-error-page {
    background-color: #EFEFEF;
    color: #2E2F30;
    text-align: center;
    font-family: arial, sans-serif;
    margin: 0;
  }

  .rails-default-error-page div.dialog {
    width: 95%;
    max-width: 33em;
    margin: 4em auto 0;
  }

  .rails-default-error-page div.dialog > div {
    border: 1px solid #CCC;
    border-right-color: #999;
    border-left-color: #999;
    border-bottom-color: #BBB;
    border-top: #B00100 solid 4px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    background-color: white;
    padding: 7px 12% 0;
    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
  }

  .rails-default-error-page h1 {
    font-size: 100%;
    color: #730E15;
    line-height: 1.5em;
  }

  .rails-default-error-page div.dialog > p {
    margin: 0 0 1em;
    padding: 1em;
    background-color: #F7F7F7;
    border: 1px solid #CCC;
    border-right-color: #999;
    border-left-color: #999;
    border-bottom-color: #999;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top-color: #DADADA;
    color: #666;
    box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
  }
  </style>
</head>

<body class="rails-default-error-page">
  <!-- This file lives in public/500.html -->
  <div class="dialog">
    <div>
      <h1>We're sorry, but something went wrong.</h1>
    </div>
    <p>If you are the application owner check the logs for more information.</p>
  </div>
</body>
</html>
* Connection #0 to host ectomobile.sutty.nl left intact

Fichero 20220317174041-5d847afa-a619-11ec-9120-6b099914cc65

{
  "transaction_uuid": "5d847afa-a619-11ec-9120-6b099914cc65",
  "serial_number": "0000000083a999fd",
  "public_key": "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPrn5OP47mcCq2xmHyJQe4kVmUf3idCnjUQwer6oqHVknZBbzzkzBrf8jV9CSlLUNX1va1cbBN5ZX79LTTcsYUs= taller_rnd 0000000083a999fd",
  "controller_id": "taller_rnd",
  "timestamp": "1647538841",
  "error_code": "10",
  "coordinates": {
    "lat": 1,
    "lng": 1
  },
  "battery_status": "98",
  "sample": "0",
  "storage": "uso del almacenamiento",
  "arduinos": [
    {
      "id": "dummy_plug-01",
      "sensores": [
        {
          "type": "temp",
          "value": 15,
          "unit": "C",
          "error": 99
        },
        {
          "type": "hum",
          "value": 80,
          "unit": "percent",
          "error": 99
        }
      ]
    },
    {
      "id": "dummy_plug-02",
      "sensores": [
        {
          "type": "temp",
          "value": 31,
          "unit": "C",
          "error": 99
        },
        {
          "type": "hum",
          "value": 60,
          "unit": "percent",
          "error": 99
        }
      ]
    },
    {
      "id": "dummy_plug-03",
      "sensores": [
        {
          "type": "temp",
          "value": 30,
          "unit": "C",
          "error": 99
        },
        {
          "type": "hum",
          "value": 75,
          "unit": "percent",
          "error": 99
        }
      ]
    },
    {
      "id": "dummy_plug-04",
      "sensores": [
        {
          "type": "temp",
          "value": 31,
          "unit": "C",
          "error": 99
        },
        {
          "type": "hum",
          "value": 54,
          "unit": "percent",
          "error": 99
        }
      ]
    }
  ]
}

Fichero 20220317174041-5d847afa-a619-11ec-9120-6b099914cc65.sig

-----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAGgAAAATZWNkc2Etc2hhMi1uaXN0cDI1NgAAAAhuaXN0cDI1NgAAAE
EE+ufk4/juZwKrbGYfIlB7iRWZR/eJ0KeNRDB6vqiodWSdkFvPOTMGt/yNX0JKUtQ1fW9r
VxsE3llfv0tNNyxhSwAAAARmaWxlAAAAAAAAAAZzaGE1MTIAAABkAAAAE2VjZHNhLXNoYT
ItbmlzdHAyNTYAAABJAAAAIQCHhz36gvchiv62f4sdyIS5G9LbAbJO7W4f0lFB2lbEJwAA
ACBA15DCYHs0KllbCz7A4iuvJkQ8bAI0hhZHnkxytDwKmw==
-----END SSH SIGNATURE-----
Me esta dando este error desde el otro dia, pense que era por el cambio de firma pero ahora se supone que esta bien. en el fichero registardor (testing) ``` ... firma=$(sign_file $registros/$file) local_transaction_uuid=$(jq -r '."transaction_uuid"' $registros/$file) curl -v --show-error -w "~%{http_code}" -X POST -H "X-Signature: $firma" -H "Content-Type: application/json" -d @$registros/$file $servidor exit ``` Salida del comando ``` Note: Unnecessary use of -X or --request, POST is already inferred. * Trying 54.39.161.205:443... * Connected to ectomobile.sutty.nl (54.39.161.205) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt * CApath: /etc/ssl/certs * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use h2 * Server certificate: * subject: CN=ectomobile.sutty.nl * start date: Jan 28 04:26:08 2022 GMT * expire date: Apr 28 04:26:07 2022 GMT * subjectAltName: host "ectomobile.sutty.nl" matched cert's "ectomobile.sutty.nl" * issuer: C=US; O=Let's Encrypt; CN=R3 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed) * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0 * Using Stream ID: 1 (easy handle 0x85c528) > POST /readings HTTP/2 > Host: ectomobile.sutty.nl > user-agent: curl/7.74.0 > accept: */* > x-signature: U1NIU0lHAAAAAQAAAGgAAAATZWNkc2Etc2hhMi1uaXN0cDI1NgAAAAhuaXN0cDI1NgAAAEEE+ufk4/juZwKrbGYfIlB7iRWZR/eJ0KeNRDB6vqiodWSdkFvPOTMGt/yNX0JKUtQ1fW9rVxsE3llfv0tNNyxhSwAAAARmaWxlAAAAAAAAAAZzaGE1MTIAAABkAAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAABJAAAAIQCHhz36gvchiv62f4sdyIS5G9LbAbJO7W4f0lFB2lbEJwAAACBA15DCYHs0KllbCz7A4iuvJkQ8bAI0hhZHnkxytDwKmw== > content-type: application/json > content-length: 1137 > * We are completely uploaded and fine * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * Connection state changed (MAX_CONCURRENT_STREAMS == 128)! < HTTP/2 500 < server: nginx < date: Thu, 17 Mar 2022 18:00:05 GMT < content-type: text/html; charset=UTF-8 < content-length: 1635 < x-request-id: f9b0c645-780b-4009-842b-2679c17b98d0 < x-runtime: 0.028691 < <!DOCTYPE html> <html> <head> <title>We're sorry, but something went wrong (500)</title> <meta name="viewport" content="width=device-width,initial-scale=1"> <style> .rails-default-error-page { background-color: #EFEFEF; color: #2E2F30; text-align: center; font-family: arial, sans-serif; margin: 0; } .rails-default-error-page div.dialog { width: 95%; max-width: 33em; margin: 4em auto 0; } .rails-default-error-page div.dialog > div { border: 1px solid #CCC; border-right-color: #999; border-left-color: #999; border-bottom-color: #BBB; border-top: #B00100 solid 4px; border-top-left-radius: 9px; border-top-right-radius: 9px; background-color: white; padding: 7px 12% 0; box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); } .rails-default-error-page h1 { font-size: 100%; color: #730E15; line-height: 1.5em; } .rails-default-error-page div.dialog > p { margin: 0 0 1em; padding: 1em; background-color: #F7F7F7; border: 1px solid #CCC; border-right-color: #999; border-left-color: #999; border-bottom-color: #999; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-color: #DADADA; color: #666; box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); } </style> </head> <body class="rails-default-error-page"> <!-- This file lives in public/500.html --> <div class="dialog"> <div> <h1>We're sorry, but something went wrong.</h1> </div> <p>If you are the application owner check the logs for more information.</p> </div> </body> </html> * Connection #0 to host ectomobile.sutty.nl left intact ``` Fichero `20220317174041-5d847afa-a619-11ec-9120-6b099914cc65` ``` { "transaction_uuid": "5d847afa-a619-11ec-9120-6b099914cc65", "serial_number": "0000000083a999fd", "public_key": "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPrn5OP47mcCq2xmHyJQe4kVmUf3idCnjUQwer6oqHVknZBbzzkzBrf8jV9CSlLUNX1va1cbBN5ZX79LTTcsYUs= taller_rnd 0000000083a999fd", "controller_id": "taller_rnd", "timestamp": "1647538841", "error_code": "10", "coordinates": { "lat": 1, "lng": 1 }, "battery_status": "98", "sample": "0", "storage": "uso del almacenamiento", "arduinos": [ { "id": "dummy_plug-01", "sensores": [ { "type": "temp", "value": 15, "unit": "C", "error": 99 }, { "type": "hum", "value": 80, "unit": "percent", "error": 99 } ] }, { "id": "dummy_plug-02", "sensores": [ { "type": "temp", "value": 31, "unit": "C", "error": 99 }, { "type": "hum", "value": 60, "unit": "percent", "error": 99 } ] }, { "id": "dummy_plug-03", "sensores": [ { "type": "temp", "value": 30, "unit": "C", "error": 99 }, { "type": "hum", "value": 75, "unit": "percent", "error": 99 } ] }, { "id": "dummy_plug-04", "sensores": [ { "type": "temp", "value": 31, "unit": "C", "error": 99 }, { "type": "hum", "value": 54, "unit": "percent", "error": 99 } ] } ] } ``` Fichero `20220317174041-5d847afa-a619-11ec-9120-6b099914cc65.sig` ``` -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAAGgAAAATZWNkc2Etc2hhMi1uaXN0cDI1NgAAAAhuaXN0cDI1NgAAAE EE+ufk4/juZwKrbGYfIlB7iRWZR/eJ0KeNRDB6vqiodWSdkFvPOTMGt/yNX0JKUtQ1fW9r VxsE3llfv0tNNyxhSwAAAARmaWxlAAAAAAAAAAZzaGE1MTIAAABkAAAAE2VjZHNhLXNoYT ItbmlzdHAyNTYAAABJAAAAIQCHhz36gvchiv62f4sdyIS5G9LbAbJO7W4f0lFB2lbEJwAA ACBA15DCYHs0KllbCz7A4iuvJkQ8bAI0hhZHnkxytDwKmw== -----END SSH SIGNATURE----- ```
fauno was assigned by sergio.pernas 2022-03-17 18:58:01 +00:00
Owner

uh dale lo reviso antes del fin del día

uh dale lo reviso antes del fin del día
fauno closed this issue 2022-03-19 15:35:09 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Nodemecu/nodemecu#10
No description provided.