POST
|
Have you tried altering when the workflow manager service recycle occurs? We have a similar issue related to the recycle of the workflow manager service (defaulted to midnight). Try changing the recycle time to 48 hours and see if the error occurs. If it doesnt occur after after the first day and then returns on the second day then you have the same issue. We currently have no solution to this issue but would be interested to see if you have the same issue as we are witnessing.
... View more
09-04-2019
01:45 PM
|
0
|
0
|
666
|
POST
|
We are adding users to workflow groups using the rest api. We are getting a different response than what is documented here - ArcGIS Workflow Manager REST API Our return json looks like: '{"returnCode":2}' or '{"returnCode":1}' Where are these responses documented as we cannot understand if these calls are working or not.
... View more
09-04-2019
01:29 PM
|
0
|
0
|
292
|
POST
|
We were experiencing the exact same issues. I was able to add the first enterprise user successfully but then all following users failed with the error message Unable to signup user. ["Unable to add user."]. Did you ever solve this? We are on 10.6.1 fully patched. The only way we could get this working with enterprise was to add the idp_username to the list or parameters.
... View more
07-31-2019
09:12 AM
|
0
|
1
|
714
|
POST
|
Hi Bennett, We added some debug info into connection.py to check what it was doing and noticed it was returning HTML. Our infrastructure people suggested using the admin connection and FQDN and it worked. We now believe it might be something to do with the url in our load balancer being different to our portal context URL. We are still investigating though. Mike
... View more
06-05-2019
12:46 PM
|
0
|
3
|
3342
|
POST
|
We have the same problem. We have tracked it down to requests being made to the server in connection.py of the ArcGIS rest API. The parameter to set the response to return JSON (f=json) is being ignored so when the python tries to parse the JSON it fails as it is HTML. However, this is hidden by the outer try catch. No idea why the parameter is being ignored. When we hit the endpoint from postman or any other tool the parameter is respected and the server returns json.
... View more
06-04-2019
09:31 AM
|
2
|
5
|
3342
|
POST
|
Had the same problem but adding referer didn;t work - https://community.esri.com/message/836822-javalangexception-invalid-token
... View more
03-08-2019
02:37 AM
|
0
|
0
|
2776
|
POST
|
When attempting to create a portal user we are receiving an error message: {
"error": {
"code": 500,
"message": "java.lang.Exception: The server at '<SERVER URL>' returned an error. Invalid token. []",
"details": null
}
} I saw this message but adding the referer didn't make a difference. The set up is exactly the same except we are using 10.6. https://community.esri.com/thread/212042-invalid-token-for-portaladminsecurityuserscreateuser def generate_portal_token(self, use_referer):
url = self.portal_url + self.rest_path + "/generatetoken"
payload = {}
if use_referer:
payload["client"] = "referer"
payload["referer"] = self.portal_url
else:
payload["client"] = "requestip"
payload["Username"] = self.username
payload["Password"] = self.password
payload["expiration"] = 60
payload["f"] = "json"
headers = {
'Content-Type': "application/x-www-form-urlencoded",
'cache-control': "no-cache"
}
response = requests.request(
"POST", url, data=payload, headers=headers, verify=False)
print(response.text)
token_data = json.loads(response.text)
return token_data["token"] def create_portal_user(self, user):
url = self.portal_url + "/portaladmin/security/users/createUser"
referer_token = self.generate_portal_token(True)
payload = {}
payload["firstname"] = user["firstname"]
payload["lastname"] = user["lastname"]
payload["password"] = user["password"]
payload["level"] = user["level"]
payload["email"] = user["email"]
payload["role"] = user["role"]
payload["provider"] = "arcgis"
payload["description"] = "test user"
payload["f"] = "json"
payload["token"] = referer_token
payload["referer"] = self.portal_url
headers = {
'Content-Type': "application/x-www-form-urlencoded",
'cache-control': "no-cache"
}
response = requests.request(
"POST", url, data=payload, headers=headers, verify=False)
print(response.text)
response_data = json.loads(response.text)
return response_data If I don't use the referer then I get error 498 invalid token. Any ideas what I am doing wrong?
... View more
03-08-2019
02:25 AM
|
0
|
0
|
1799
|
Title | Kudos | Posted |
---|---|---|
2 | 06-04-2019 09:31 AM |
Online Status |
Offline
|
Date Last Visited |
10-17-2023
11:54 AM
|