Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gmundt

#1
Programming / Re: web request chunked
May 08, 2026, 08:49:49 AM
Sorry,

The line I was looking at was line 289 which is part of the check_more_chunks subroutine.  I am not sure what the 379 is, it's part of the response from the API.  I would need to make a call to this to get the full response and then send it to you.
#2
Programming / web request chunked
May 06, 2026, 03:54:55 PM
I'm having an issue with a web request failing when switching from pxplus 18 to 19.10

379

{"purchase_orders":[{"created_at":"2023-05-01T17:56:18Z","updated_at":"2023-06-25T01:34:53Z","id":117182,"status":"completed","currency":"USD","incoterms":"MILL           ",


Line 289 l=dec(ath(mid("000000"+hex$,-8)),err=*break) is returning value larger than the length of the string at 889 and causes an error 47.  What could be causing this issue?

#3
Programming / Re: API Call returning unreadable
April 22, 2026, 01:14:29 PM
The issue is with the FedEx sandbox.  It is very particular concerning sequence of JSON as well as options submitted.
#4
Programming / Re: API Call returning unreadable
April 13, 2026, 02:30:02 PM
Okay, I'll have to see if FedEx supports 1.0 at the customer is on an older version of PxPlus.
#5
Programming / Re: API Call returning unreadable
April 13, 2026, 12:57:24 PM
I thought that call "*plus/web/request" defaulted to 1.1 and would need to update %web_request_http_ver$ to change it 1.0.
#6
Programming / API Call returning unreadable
April 10, 2026, 02:00:04 PM
I am trying to make an API call to FedEx rate quote.  The JSON works fine in Postman, but when I attempt it through the web/request I am getting unreadable response.

extrahdr$="Content-Type: application/json"+$0a$+"Authorization: Bearer MyToken"+$0a$+"Accept-Encoding: identity"

url$=https://apis-sandbox.fedex.com/rate/v1/rates/quotes

request$=
{
  "accountNumber":{
    "value":"740561073"
  },
  "requestedShipment":{
    "shipper":{
      "address":{
        "streetLines":["17841 FITCH"],
        "city":"IRVINE",
        "stateOrProvinceCode":"CA",
        "postalCode":"92614",
        "countryCode":"US"
      }
    },
    "recipient":{
      "address":{
        "streetLines":["7609 Geranium Street"],
        "city":"Bethesda",
        "stateOrProvinceCode":"MD",
        "postalCode":"20817",
        "countryCode":"US"
      }
    },
    "rateRequestType":["LIST"],
    "serviceType":"FIRST_OVERNIGHT",
    "preferredCurrency":"USD",
    "shipDateStamp":"2026-04-10",
    "pickupType":"DROPOFF_AT_FEDEX_LOCATION",
    "packagingType":"YOUR_PACKAGING",
    "requestedPackageLineItems":[
      {
        "groupPackageCount":"1",
        "weight":{
          "units":"LB",
          "value":"8"
        }
      }
    ]
  }
}

method$="POST"

call "*plus/web/request",url$,request$,rcv_data$,rcv_hdr$,"","",extrahdr$,method$

Since the header is returning HTTP/1.0 500 Internal Server Error and Content-Encoding is returning gzip I believe I have something incorrect in the heading.

 
#7
Language / Re: Global Variable not Saving
March 06, 2026, 10:32:37 AM
James,

I appreciate the response.  It is a FACTS customer and it appears that newer versions open windows as new sessions which was causing the disconnect.
#8
Language / XML to JSON
March 06, 2026, 10:31:11 AM
I need to convert XML data to JSON.  I see there are some objects to do that, but wondering at what version the json object was available.  The customer is at PxPlus 2018 (15.10).
#9
Language / Global Variable not Saving
January 08, 2026, 03:49:54 PM
I'm just curious about global variables.  I am setting a variable %my_variable$="Greg", but when I pull up a new window and do a ? %my_variable$ it is showing as empty.  Is there something else that needs to be set to define a global variable?  This is version 15.10.
#10
Programming / ENV Function
December 08, 2025, 02:36:10 PM
Can the environment function be used to return environment information from a local machine when in client / server using WindX?

? env("SSI_BASE") returns "" because it is checking for the environment variable on the linux server, but I want to check it on my local PC.
#11
Programming / Scroll Mnemonic
May 07, 2025, 09:39:38 AM
I am trying to use the scroll mnemonic based on some BBx code and having some issues.

print 'scroll'(4,7,76,17)

print @(4,23)"Enter Memo / Item, F3-End, F4-Backup" is printing over the top of line 1.

Any recommendations or suggestions?
#12
Programming / Program Password Removal
April 08, 2025, 02:30:11 PM
Is there a method to remove a password from a program if the user that created the program can no longer remember the password?
#13
Language / Re: Error 117 in Keyed file
March 17, 2025, 11:30:54 AM
I was getting this error on a file that was getting too large.  I had to work around it by doing a check and rotating files when they reached a size limit.
#14
Web Services / Re: Web server failing to get requests.
January 14, 2025, 04:22:34 PM
I don't believe there are any firewalls on the linux server, but will check that out.
#15
Web Services / Re: Web server failing to get requests.
January 14, 2025, 02:17:01 PM
It's a bit of a confusing issue.  What the network team is indicating is that the request makes it through the firewall, but does not show in the logs for the web service.