Getting a partial response returned from http_req( 'GET'
Posted: Thu Aug 24, 2023 6:28 pm
I am doing a get to return a long response string. I am getting back only 3041 characters of the JSON. When I run this URL in Postman, the whole JSON is returned. My response string is plenty long - 2,000,000 VARCHAR. in the HTTP_Req procedure, the resultstr is only the 3041 characters, LEN=3041.
the Get is URL driven, so there is no request: https://xxnamexxxxx-uat-api.cbxcloud.co ... 308-000075
The resultsize in HTTP_req is 2000000
The RcvStrBuf.Len is 3041. But the JSON returned in Postman is larger.
Any idea how this can occur? I have also verified that the sender is successfully returning 6122 characters:
2023-08-24 00:31:01,893 INFO c.c.c.c.CustomizeEmbeddedTomcatContainer - GET /api/purchase_orders/VPO2308-000075 status=200, time_taken=64, bytes=6122, query_string=, request_uuid=90b9ede4-33e2-4128-a76e-8851298f0065, remote_ip_address=192.168.52.10
Debug listing:
the Get is URL driven, so there is no request: https://xxnamexxxxx-uat-api.cbxcloud.co ... 308-000075
Code: Select all
rc = http_xproc(HTTP_POINT_ADDL_HEADER:
%paddr(add_Auth_Headers));
rc = http_req( 'GET'
: URL
: *omit
: response
: *omit
: request
: 'application/json');
The RcvStrBuf.Len is 3041. But the JSON returned in Postman is larger.
Any idea how this can occur? I have also verified that the sender is successfully returning 6122 characters:
2023-08-24 00:31:01,893 INFO c.c.c.c.CustomizeEmbeddedTomcatContainer - GET /api/purchase_orders/VPO2308-000075 status=200, time_taken=64, bytes=6122, query_string=, request_uuid=90b9ede4-33e2-4128-a76e-8851298f0065, remote_ip_address=192.168.52.10
Debug listing:
Code: Select all
recvresp(): entered
HTTP/1.1 200
Date: Thu, 24 Aug 2023 18:41:36 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Server: nginx
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-REQUEST-UUID: 304df86e-b970-4be2-a91a-800471b7216d
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data: https: blob:; style-src 'self' 'unsafe-inline' sha256-base64 encoded hash; font-src 'self' fonts.gstatic.com data:; frame-ancestors 'self'; base-uri 'self'; connect-src 'self' blob:; worker-src 'self' blob:; frame-src 'self' https://app.powerbi.com;
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Upstream: 192.168.52.17:8098
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Cache-Control: no-cache, no-store
SetError() #13: HTTP/1.1 200
recvresp(): end with 200
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
be1
chunk size = 3041
get_chunk_size returned 3041
calling comm_blockread
{"id":"4028b4918a1043fb018a1ec21e500c11","refNo":"VPO2308-000075","revision":1,"entityVersion":1,"domainId":"PARTYCITY","hubDomainId":"PARTYCITY","isForReference":false,"version":1,"status":"releasedToVendor","docStatus":"active","editingStatus":"confirmed","createUser":"bpcs_integration@partycity@PARTYCITY","createUserName":"BPCS UAT Integration","updateUser":"bpcs_integration@partycity@PARTYCITY","updateUserName":"BPCS UAT Integration","amIOwner":true,"createdOn":"2023-08-22T19:39:12.818Z","updatedOn":"2023-08-22T19:39:12.818Z","productCategoryValue":"All","isLatest":true,"vpoItemIsLatest":true,"isDocLock":false,"vpoNo":"362500","vpoDate":"2023-06-08","custPoNo":"362500","custContact":"9143452020","isCpmInitialized":false,"totalAmt":1728.00000,"businessRefNo":"VPO2308-000075","currency":{"code":"USD","name":"USD","version":1},"custId":{"id":"4028b49189df322e0189df779bd5001d","refNo":"C000002","version":1,"businessName":"Amscan","custCode":"C000002","address1":"1 CELEBRATION SQUARE","postalCode":"07677","city":"WOODCLIFF LAKE","state":"NJ","telNo":"(845)469-911","email":"admin@amscan.com","country":{"code":"US","name":"United States of America","version":2},"custAddressList":[{"isDefault":true,"addressTypeIdList":[],"address1":"1 CELEBRATION SQUARE","city":"WOODCLIFF LAKE","state":"NJ","postalCode":"07677","companyName":"AMSCAN INC.","country":{"code":"US","name":"United States of America","version":2},"customFields":{}},{"isDefault":false,"addressTypeIdList":[{"version":1,"customFields":{}}],"address1":"47 Elizabeth Drive","address2":"Chester Industrial Park","city":"Chester","state":"NY","postalCode":"10918","companyName":"Amscan Everyday Warehouse","country":{"code":"US","name":"United States of America","version":2},"customFields":{}},{"isDefault":false,"addressTypeIdList":[{"version":1,"customFields":{}}],"address1":"16# Hinterland Area of Yantian Port","address2":"Shenzhen PR","postalCode":"518083","companyName":"Allport Cargo Services - Shenzhen","country":{"code":"CN","name":"China","version":2},"customFields":{}},{"isDefault":false,"addressTypeIdList":[{"version":1,"customFields":{}}],"address1":"NO55 Yongdinghe Rd Xiapu Int’l Logistics Park","address2":"Beilun","city":"NINGBO","postalCode":"315800","companyName":"Allport Cargo Services - NINGBO","country":{"code":"CN","name":"China","version":2},"customFields":{}}]},"vendorId":{"id":"161ba6f0275d4b53b2e44f9d7081271e","version":3,"refNo":"VM13617","businessName":"GB SPORTS","vendorCode":"13617","address1":"C-11-12, UDYOG PURAM DELHI ROAD","postalCode":"250103","contactName":"BRIJESH KATULA","city":"MEERUT","state":"UTTAR PRADESH","telNo":"91-999-7779944","country":{"code":"IN","name":"India","version":2},"reference":"2535","customFields":{},"productCategoryList":[{"version":1,"customFields":{}}]},"subContractorList":[],"termsConditionList":[],"productCategoryList":[{"code":"PC001","name":"All","version":2,"customFields":{}}],"vpoItemList":[{"itemNo":"349000.05","itemName":"POM POM MIX - ORANGE","itemColorsList":[],"itemSizes
comm_blockread returned 3041