[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ftpapi] recvresp(): end with err
Hello,
I am in the process of setting up a call to a REST API in Pitney Bowes
sandbox that will return a test shipping label. All of this is new to me.
On Friday I had the POST working and was receiving the data back from
the sandbox. I was working on parsing the JSON that was returned.
However, this morning I am getting this error in the http_debug.txt file
: recvresp(): end with err.
I contacted Pitney Bowes and they say they can see my request and that
all the data was returned. I found a 2013 question regarding this and
Scott Klement recommended adding the 'connection: close' header. I
tried that but got the same result. I changed the HTTP_REQ POST to put
the returned data into a file instead of a variable and got the same
result.
I also have a call to the REST API that returns an OAUTH token and it
works just fine.
I am hoping somebody can point me in the direction I need to go to solve
this. I am a little out of my comfort zone with this. I did install
PTFs on our 7.3 system this weekend. They were the latest group PTFs.
I am also trying to find out if any changes to our firewall were made
this weekend.
Here is the contents of the http_debug.txt file.
HTTPAPI Ver 1.40 released 2019-08-15
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R3M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: FCA
DNS server found: 10.0.0.80
DNS server found: 10.0.0.85
Nagle's algorithm (TCP_NODELAY) disabled.
SNI hostname set to: api-sandbox.pitneybowes.com
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----
Serial Number: 0D:02:2C:A9:FD:A5:9B:6A:99:C3:3B:53:18:25:41:86
Common Name: *.pitneybowes.com
Country: US
State/Province: Connecticut
Locality: Danbury
Org Unit: Pitney Bowes
Org: PSG
Issuer CN: DigiCert SHA2 Secure Server CA
Issuer Country: US
Issuer Org: DigiCert Inc
Version: 3
not before: 20190220190000
Unknown Field: 19:00:00 20-02-2019
not after: 20210310070000
Unknown Field: 07:00:00 10-03-2021
pub key alg: 1.2.840.113549.1.1.1
signature algorithm: 1.2.840.113549.1.1.11
Unknown Field:
0382010F003082010A0282010100C6B7E05FB13CB216CC6ED110F929D7D0144A89C86D0099CA7AC1824970EE9E087AAB1B0A2096180B81AB1909AA423163EC05DE5ACD989307D57BFD8820CAE85FD9CD6F725224E191B4EA1D3CC7CD97A5ED32EB4ED47D86C69393B677086C5B0A12DC61F02725BC817A7186148BF8E1382A5A0489BD2AE2790C9AAE36D304577591631DE273EE74E188F0C0CC492F16F1B1F4538A7055181901F7C424B669A41129F9846751A83C0D9AE03541BE6BC574047D526C6E8F172EF0713DF8FBA5AC987E1C1DB3453E6ADC62959223A17A96F52DBF7A6BE5C3E84840FB4D81B80F4F08CC0394B165C7CFE4362435D4318CE54AE57C6F579EE9F47A10128819F377DA5D0203010001
Unknown Field: 2048
Unknown Field: DEDC85D0DD796CB6B5A42319ED9F2555
Unknown Field: 1.2.840.113549.2.5
Unknown Field: DA649F83D0409A371A7B34BB1E587B8DAABC9A03
Unknown Field:
96CE1D65559BE880D2AFC6FAF984372D9F815A814A5FEAF43512D80896A1E3EE
Unknown Field: 5
Unknown Field: *.pitneybowes.com
Unknown Field: 0
Unknown Field: 1.3.6.1.5.5.7.3.2
Unknown Field: 1.3.6.1.5.5.7.3.1
Unknown Field: 2.23.140.1.2.2
Unknown Field: 2.16.840.1.114412.1.1
Unknown Field: http://ocsp.digicert.com
Protocol Used: TLS Version 1.2
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /shippingservices/v1/shipments HTTP/1.1
Host: api-sandbox.pitneybowes.com
User-Agent: http-api/1.39
Content-Type: application/json
Content-Length: 2154
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxx
X-PB-TransactionID: 0000256870000157440000041
senddoc(): entered
{
"fromAddress": {
"company": "FC&A",
"name": "FC&A",
"phone": "",
"email": "",
"residential": false,
"addressLines": [
"103 CLOVER GREEN",
" "
],
"cityTown": "PEACHTREE CITY",
"stateProvince": "GA",
"postalCode": "30269",
"countryCode": "US"
},
"toAddress": {
"company": "",
"name": "John Doe",
"phone": "",
"email": "",
"residential": false,
"addressLines": [
"111 COUNTY ROAD 234",
" "
],
"cityTown": "ARLEY",
"stateProvince": "AL",
"postalCode": "35541-3146",
"countryCode": "US"
},
"parcel": {
"weight": {
"unitOfMeasurement": "OZ",
"weight": "16"
},
"dimension": {
"unitOfMeasurement": "IN",
"length": "10",
"width": "8",
"height": "3",
"irregularParcelGirth": ""
}
},
"rates": [
{
"carrier": "NEWGISTICS",
"serviceId": "BPM",
"parcelType": "PKG"
}
],
"documents": [
{
"type": "SHIPPING_LABEL",
"contentType": "BASE64",
"size": "DOC_4X4",
"fileFormat": "PNG"
}
],
"references": [
{
"name": "ReferenceNumber",
"value": "OR1234"
},
{
"name": "Add1Ref1",
"value": "CC123456"
},
{
"name": "Add1Ref2",
"value": "CC4321"
}
],
"shipmentOptions": [
{
"name": "SHIPPER_ID",
"value": "9015597635"
},
{
"name": "IS_RECTANGULAR",
"value": "true"
},
{
"name": "CLIENT_FACILITY_ID",
"value": "2041"
},
{
"name": "CARRIER_FACILITY_ID",
"value": "1585"
},
{
"name": "NON_DELIVERY_OPTION",
"value": "ChangeServiceRequested"
}
]
}
recvresp(): entered
recvresp(): end with err
http_close(): entered
Thank you in advance for your help.
Regards,
Bobby Adams
--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi