Token Ibragimov · Mar 7, 2024 go to post

..%SessionId=""
Do ..SendRequestAsync("process.Reconciliation",pInput,"processing")

Change to 

Do ..SendRequestSync("process.Reconciliation",pInput,"processing")

Token Ibragimov · Feb 28, 2024 go to post

set status = instance.SendRequestAsync("My.BusinessProcess", request, .response)

Getting error <INVALID OREF>

Token Ibragimov · Jan 12, 2024 go to post

hello!

ls -lad /tmp/test/test1.txt
-rwxrwxrwx 1 r00028881 r00028881 8 Jan 11 09:56 /tmp/test/test1.txt
ls -lad /tmp/test
drwxrwxr-x 2 r00028881 r00028881 22 Jan 11 10:22 /tmp/test
ls -lad /tmp
drwxrwxrwt 11 root root 269 Jan 12 15:44 /tmp

Token Ibragimov · Jan 11, 2024 go to post
ls /tmp/test.txt -lh

-rwxrwxrwx 1 r00028881 r00028881 8 Jan 11 09:56 /tmp/test/test1.txt

Hello!

The result.

Token Ibragimov · Mar 25, 2022 go to post

Thank you Roger!

I have saved method as generatePass.mac , after executing W $$^PASSWD . I've got error 

W $$^PASSWD - Error <NOROUTINE> 

 
Token Ibragimov · Jun 12, 2020 go to post

Yes, i have check connect using FileZillaConnect and connection is successful.

Status:    Connected to XXXXXXXX
Status:    Starting upload of C:\Registries\MonthlyReports\KARTEL\202006\08\50_8.06_8.06.xls
Status:    File transfer successful, transferred 6,065 bytes in 1 second
Status:    Retrieving directory listing of "/"...
Status:    Listing directory /
Status:    Directory listing of "/" successful

 
Token Ibragimov · Jun 12, 2020 go to post

Eduard thanks for the answer

Connect: ОШИБКА #7500: SSH Connect Ошибка '-2147014836': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  [8007274C]: Unknown error [8007274c] at ..\..\shared\Utility\utlNetSocket.cpp:1105,0                                                                          

Auth: ОШИБКА #7500: SSH AuthenticateWithUsername Ошибка '-2146435071': An internal consistency check failed

[80100001]
SFTP: ОШИБКА #7500: SSH OpenSFTP Ошибка '-2146435071': An internal consistency check failed.                                                                  [80100001]
Exception: <UNDEFINED> 9 zuploadTest+15^pgw.task.UploadToFTP.1 sftp

The code bellow works, but still I can't put file to remote server.

#dim sftp As %Net.SSH.SFTP 
    set ssh = ##class(%Net.SSH.Session).%New()
    do ssh.Connect(host)
    do ssh.AuthenticateWithUsername(username,password)
    //open an SFTP session and get that returned by reference
    do ssh.OpenSFTP(.sftp)

    set dir="C:\Registries\MonthlyReports\KARTEL\202004\30\test1.txt"
    set remotePath="sftp://TEST@77.77.33.11/NEW.txt"

   Set sc=sftp.Put(dir,remotePath)

Exception: <UNDEFINED> 9 zuploadTest+34^pgw.task.UploadToFTP.1 sftp

zw sftp

sftp=<OBJECT REFERENCE>[14@%Net.SSH.Session]
+----------------- general information ---------------
|      oref value: 14
|      class name: %Net.SSH.Session
| reference count: 2
+----------------- attribute values ------------------
|            HostKey = ""
|          (Session) = "Session@91273700"

Token Ibragimov · Aug 8, 2019 go to post

Thank you!

You are right, I checked the request, zeros are not displayed. How to send zeros in request ?

GET /201506/91001?PAGE=INDEX HTTP/1.1

must be

/201506/091001

Token Ibragimov · Mar 27, 2019 go to post

 Hello, Eduard! Thanks for the answer!

I change to $ZF(-1) and it works

Set cmdLine="""C:\Program Files (x86)\WinRAR\Rar.exe"" x "_"C:\billing\gor.rar "_"*.dbf"_" C:\billing\"
 Set errCode=$ZF(-1,cmdLine)

Token Ibragimov · Mar 27, 2019 go to post

Hello!

Trying to unrar archive in terminal , but the process is blocked.   

Cache run in Windows server 2012

Code bellow

        Set cmdLine="""C:\Program Files (x86)\WinRAR\Rar.exe"" x "_path_" *.dbf "_pathToExt
        Set errCode=$ZF(-100,cmdLine)

Why the command is not executed?

Token Ibragimov · Feb 22, 2019 go to post

Hello Eduard! Thank you for feedback.

In my case it doesn't work, the output: 

Set ^tk("object")=pObject
Set ^tk("access_token1")=pObject."access_token"
Set ^tk("access_token2")=pObject.in

the response:

^tk("respText")="{""access_token"":""4SDFDSFDSF-aSDASDASD"",""expires_in"":""3300"",""refresh_token"":"""",""scope"":""sms_send"",""token_type"":""Bearer""}"

^tk("access_token1")=""
^tk("access_token2")="" 

^tk("object")="9@%ZEN.proxyObject"