Christian Sjöstedt

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • 12th May 2021 at 2:08 pm #34381

    Correction. That didnt solve it.
    Seems like it has to do with how some strings are paresed.

    encodestring = ‘Default\n’ + self.outputMask.replace(‘/’, ‘\\’) + ‘\n’
    encoded = base64.b64encode(encodestring.encode()).decode() # here is the secret sauce

    We have to encode the strings to encoded b64 and then decode it to get the command to be interpreted alright. no clue why but now it works

    12th May 2021 at 9:04 am #34380

    A very clever individual just found a fix.
    ———————————————————————-
    #cmd = base64.b64encode(cmd.encode()) # I started out doing this.
    cmd_encoded = cmd.encode() #This was the fix for some reason, not sure why
    request = urlreq.Request(self.url + ‘/api/queue/actions?name=submit&authToken=’ + authToken, cmd_encoded)
    contents = urlreq.urlopen(request).read()
    response = json.loads(contents)

    if ‘ResponseStatus’ in response and ‘objectId’ in response[‘ResponseStatus’]:
    jobID = response[‘ResponseStatus’][‘objectId’]

    ———————————————————————-

    11th May 2021 at 2:29 pm #34379

    hmm.. when I try and go through 9081 I get this:

    ERROR 14:24:47.840:muster(33024): Failed to connect to the Dispatcher service REST APIs endpoint http://10.10.10.194:9891/api/queue/actions?name=submit&authToken=790C75161C680863A6077505FFDEBD7609A76FB

    and now switching back 9080 gives me this again:
    urllib.error.HTTPError: HTTP Error 400: Bad Request

    11th May 2021 at 11:14 am #34376

    Now I’m getting this. might be a little bit more specific but cant find any docs about it:

    contacting url: http://10.10.10.194:9890/api/queue/actions?name=submit&authToken=4525587D301B4ED27B5007817B04222609A499C

    still erroring on this line:
    contents = urlreq.urlopen(req,context=context).read()

    Giving me this now:
    ERROR 11:11:13.531:muster(33024): Failed to connect to the Dispatcher service REST APIs endpoint

Viewing 4 posts - 1 through 4 (of 4 total)