PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Error 31  (Read 1076 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Error 31
« on: July 15, 2020, 09:57:31 AM »
Hello List,

i'm using *plus/web/request;put
call "*plus/web/request;put",err=*next,(URL$),(DATA$),RESPONSE$,RESPONSE_HEADER$,(CONTENT_TYPE$),(CERTIFICATE$),(EXTRA_HEADERS$)

and my program is getting error 31's after running for a while..i see a lot of [tcp] ports opens on hfn channels..
i think *plus/web/request is not closing a file channel, but i see a close in the program...

has anyone else ever had this  issue?

jeff

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Error 31
« Reply #1 on: July 15, 2020, 10:26:23 AM »
Jeff

Remove the ERR=*NEXT or at least trap the error.  The program may be having an error and that might be leaving a channel open. 

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Error 31
« Reply #2 on: July 15, 2020, 10:31:14 AM »
Another thought --- you indicated you got a error 31, that's an out of memory error.  Its possible that *plus/web/request cannot allocate enough memory to hold the response. 

By default PxPlus limits the amount of memory to about 32MB. If the program runs out of memory while receiving the response it will leave the file open.

You may want to tell the system to ignore the memory limits by setting 'IZ'.
« Last Edit: July 15, 2020, 10:43:29 AM by Mike King »
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: Error 31
« Reply #3 on: July 15, 2020, 10:39:29 AM »
thank you Mike...that is more than likely the case...i will alter the error trapping