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

Test sending invoice updated? #429

Closed
ign404 opened this issue Oct 15, 2019 · 7 comments
Closed

Test sending invoice updated? #429

ign404 opened this issue Oct 15, 2019 · 7 comments

Comments

@ign404
Copy link

ign404 commented Oct 15, 2019

[no.difi.oxalis.as2.outbound.As2MessageSender] AS2 HTTP POST expected HTTP OK, but got : 502 from https://test-aksesspunkt.difi.no/as2

Im having this error. is this on my side or on the receiver side? i think also the guide is outdated.

@open-gdsn
Copy link

Same problem here... Impossible to do development using oxalis this way. I'm integrating oxalis-outbound in our own stack and cannot do a real test to see if things work without creating our own test-server. Test is done with the peppol-bis-invoice-sbdh.xml message from oxails test suite.

Debug log:

2019-11-13T13:12:45,308 [t1] ingHttpClientConnectionManager DEBUG Connection leased: [id: 1][route: {s}->https://test-aksesspunkt.difi.no:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 2 of 20]
2019-11-13T13:12:45,308 [t1] o.a.h.i.e.MainClientExec       DEBUG Opening connection {s}->https://test-aksesspunkt.difi.no:443
2019-11-13T13:12:45,308 [t1] ltHttpClientConnectionOperator DEBUG Connecting to test-aksesspunkt.difi.no/79.170.81.233:443
2019-11-13T13:12:45,308 [t1] c.s.SSLConnectionSocketFactory DEBUG Connecting socket to test-aksesspunkt.difi.no/79.170.81.233:443 with timeout 0
2019-11-13T13:12:45,375 [t1] c.s.SSLConnectionSocketFactory DEBUG Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2019-11-13T13:12:45,375 [t1] c.s.SSLConnectionSocketFactory DEBUG Enabled cipher suites:[TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, ......]
2019-11-13T13:12:45,375 [t1] c.s.SSLConnectionSocketFactory DEBUG Starting handshake
2019-11-13T13:12:45,625 [t1] c.s.SSLConnectionSocketFactory DEBUG Secure session established
2019-11-13T13:12:45,625 [t1] c.s.SSLConnectionSocketFactory DEBUG  negotiated protocol: TLSv1.2
2019-11-13T13:12:45,625 [t1] c.s.SSLConnectionSocketFactory DEBUG  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2019-11-13T13:12:45,625 [t1] c.s.SSLConnectionSocketFactory DEBUG  peer principal: CN=*.difi.no, OU=Commfides Premium SSL SGC Wildcard, OU=Provided by Atea AS, O=Direktoratet for forvaltning og IKT, STREET=Grev Wedelsplass 9, L=Oslo, ST=Oslo, OID.2.5.4.17=0151, C=NO
2019-11-13T13:12:45,625 [t1] c.s.SSLConnectionSocketFactory DEBUG  peer alternative names: [*.difi.no, difi.no]
2019-11-13T13:12:45,625 [t1] c.s.SSLConnectionSocketFactory DEBUG  issuer principal: CN=COMODO RSA Organization Validation Secure Server CA, O=COMODO CA Limited, L=Salford, ST=Greater Manchester, C=GB
2019-11-13T13:12:45,625 [t1] ltHttpClientConnectionOperator DEBUG Connection established 10.8.153.50:65517<->79.170.81.233:443
2019-11-13T13:12:45,625 [t1] ultManagedHttpClientConnection DEBUG http-outgoing-1: set socket timeout to 0
2019-11-13T13:12:45,625 [t1] o.a.h.i.e.MainClientExec       DEBUG Executing request POST /as2 HTTP/1.1
2019-11-13T13:12:45,625 [t1] o.a.h.i.e.MainClientExec       DEBUG Target auth state: UNCHALLENGED
2019-11-13T13:12:45,625 [t1] o.a.h.i.e.MainClientExec       DEBUG Proxy auth state: UNCHALLENGED
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> POST /as2 HTTP/1.1
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Message-Id: <1573647165174.1.983584895.Oxalis@3052-60028>
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> MIME-Version: 1.0
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-1; boundary="----=_Part_1_1143776438.1573647165258"
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> AS2-From: APP_0000000001
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> AS2-To: PNO000001
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Disposition-Notification-To: not.in.use@difi.no
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Disposition-Notification-Options: signed-receipt-protocol=required,pkcs7-signature; signed-receipt-micalg=required,sha1
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> AS2-Version: 1.0
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Subject: AS2 message from Oxalis
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Date: Wed, 13 Nov 2019 13:12:45 +0100
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Content-Length: 13657
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Host: test-aksesspunkt.difi.no
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Connection: Keep-Alive
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> User-Agent: Oxalis 4.1.1-SNAPSHOT
2019-11-13T13:12:45,625 [t1] o.a.h.headers                  DEBUG http-outgoing-1 >> Accept-Encoding: gzip,deflate
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "POST /as2 HTTP/1.1[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Message-Id: <1573647165174.1.983584895.Oxalis@3052-60028>[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "MIME-Version: 1.0[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-1; boundary="----=_Part_1_1143776438.1573647165258"[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "AS2-From: APP_0000000001[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "AS2-To: PNO000001[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Disposition-Notification-To: not.in.use@difi.no[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Disposition-Notification-Options: signed-receipt-protocol=required,pkcs7-signature; signed-receipt-micalg=required,sha1[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "AS2-Version: 1.0[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Subject: AS2 message from Oxalis[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Date: Wed, 13 Nov 2019 13:12:45 +0100[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Content-Length: 13657[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Host: test-aksesspunkt.difi.no[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "User-Agent: Oxalis 4.1.1-SNAPSHOT[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "[\r][\n]"
2019-11-13T13:12:45,625 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "------=_Part_1_1143776438.1573647165258[\r][\n]"

... content of request

2019-11-13T13:12:45,642 [t1] o.a.h.wire                     DEBUG http-outgoing-1 >> "------=_Part_1_1143776438.1573647165258--[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "HTTP/1.1 502 Bad Gateway[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "Server: nginx[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "Date: Wed, 13 Nov 2019 12:12:45 GMT[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "Content-Type: text/html[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "Content-Length: 166[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "Connection: keep-alive[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "<html>[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "<head><title>502 Bad Gateway</title></head>[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "<body bgcolor="white">[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "<center><h1>502 Bad Gateway</h1></center>[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "<hr><center>nginx</center>[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "</body>[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.wire                     DEBUG http-outgoing-1 << "</html>[\r][\n]"
2019-11-13T13:12:45,691 [t1] o.a.h.headers                  DEBUG http-outgoing-1 << HTTP/1.1 502 Bad Gateway
2019-11-13T13:12:45,691 [t1] o.a.h.headers                  DEBUG http-outgoing-1 << Server: nginx
2019-11-13T13:12:45,691 [t1] o.a.h.headers                  DEBUG http-outgoing-1 << Date: Wed, 13 Nov 2019 12:12:45 GMT
2019-11-13T13:12:45,691 [t1] o.a.h.headers                  DEBUG http-outgoing-1 << Content-Type: text/html
2019-11-13T13:12:45,691 [t1] o.a.h.headers                  DEBUG http-outgoing-1 << Content-Length: 166
2019-11-13T13:12:45,691 [t1] o.a.h.headers                  DEBUG http-outgoing-1 << Connection: keep-alive
2019-11-13T13:12:45,691 [t1] o.a.h.i.e.MainClientExec       DEBUG Connection can be kept alive indefinitely
2019-11-13T13:12:45,691 [t1] n.d.o.a.o.As2MessageSender     ERROR AS2 HTTP POST expected HTTP OK, but got : 502 from https://test-aksesspunkt.difi.no/as2```

@pekaaw
Copy link

pekaaw commented Nov 13, 2019

This looks very similar to our expericence.

@artjomsk
Copy link

+1, same problem. I suppose it's test accesspoint configuration issue. Sending to other APs is OK and some time ago (some months ago) it was working with Difi's Test AP.

Just notice that despite 502 error documents are delivered - https://test-aksesspunkt.difi.no/transmission

@open-gdsn
Copy link

open-gdsn commented Nov 26, 2019

@artjomsk: I indeed ses new records in there but nothing from me.

@artjomsk
Copy link

artjomsk commented Dec 4, 2019

Now, when I upgraded to latest Oxalis 4.1.0 from 4.0.4 my invoices cannot be found in https://test-aksesspunkt.difi.no/transmission too

@nathalieDOXA
Copy link

I get the same issue, receiving 502 without document delivered. Could anyone help?
Thank you in advance.

@artjomsk
Copy link

I suppose the issue can be closed, because of Difi test accesspoint is removed - https://vefa.difi.no/peppol/announcement/2020-01-13-removal-of-access-points-for-testing/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants