POST
|
For publishing Azure Functions that use arcgis api, I am using arcgis==1.9.1 per this thread: https://community.esri.com/t5/arcgis-api-for-python-questions/suddenly-can-t-build-and-deploy-python-azure/td-p/1205235 As mentioned in this original post, this week we started getting the error: Error: __init__() got an unexpected keyword argument 'method_whitelist' I looked at the urllib version that got installed when I created a project a while ago using pip install arcgis==1.9.1. The version of urllib3 that got installed at that time was 1.26.12 Today I created a fresh new Azure Function and used pip install arcgis==1.9.1 and the version of urllib3 that got installed today is 2.0.2 So, something changed recently in Esri's specification of what version of urllib3 to use, even for older versions of arcgis api. Apparently the update in terminology to replace "whitelist_methods" with "allowed_methods" has proceeded in urllib3 but has not been updated in arcgis api. For reference, here is a Github issue: https://github.com/Esri/arcgis-python-api/issues/1553 and related post in this forum: https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286090#M599
... View more
05-09-2023
05:58 AM
|
1
|
2
|
14995
|
POST
|
I'm getting the same issue here. Currently using arcgis 1.9.1, requests 2.28.1, urllib 1.26.12 Everything has been working fine for months, now getting __init__() got an unexpected keyword argument 'method_whitelist' when trying to create a GIS object using the arcgis API
... View more
05-08-2023
09:33 AM
|
0
|
0
|
15121
|
POST
|
Be aware the proposed fix to put the field alias in the bind::esri:fieldAlias column doesn't work if you have a repeat count field. There is no explicit field for this in the xls form. You have to change the alias of the feature layer. In my case this was unfortunate because I had a view on that layer that I had to remove so I could update the field alias.
... View more
12-02-2022
11:39 AM
|
0
|
0
|
637
|
POST
|
@David_Vogel how did you go about configuring CORS for your function?
... View more
09-29-2022
12:38 PM
|
0
|
1
|
1873
|
POST
|
Going back to arcgis 1.9.1 does work after all. Have to put "arcgis==1.9.1" in the requirements.txt file, not just "arcgis" Got it to work!
... View more
09-15-2022
10:58 AM
|
0
|
0
|
3537
|
POST
|
Have an update on your progress Roger? I will be doing the same.
... View more
09-15-2022
10:43 AM
|
0
|
0
|
484
|
POST
|
I am also having this same error, but installing arcgis api 1.9.1 is not working. Will not deploy if I include arcgis.
... View more
09-15-2022
10:40 AM
|
0
|
0
|
3540
|
POST
|
Is there a workaround that works around the workaround not working?
... View more
01-20-2022
07:39 AM
|
0
|
0
|
1420
|
POST
|
Merely importing arcgis causes publish to fail for me. Not even creating the gis object. Passes Analyze, but fails on publish.
... View more
09-29-2021
09:09 AM
|
0
|
0
|
832
|
POST
|
You can use an HTTP action with the addAttachment request. You have to use a multipart request, which means you don't put the request parameters in the query string of the http request. You construct a Body with the multipart form syntax. Here's an example Body: {
"$content-type": "multipart/form-data",
"$multipart": [
{
"headers": {
"Content-Disposition": "form-data; name=\"attachment\"; filename=\"@{outputs('Parse_job_result')['body']['resultInfo']['resultFiles'][0]['name']}\""
},
"body": "@{body('HTTP_get_file')['$content']}"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"f\""
},
"body": "json"
},
{
"headers": {
"Content-Disposition": "form-data; name=\"token\""
},
"body": "@{body('Parse_get_token')?['token']}"
}
]
} There 3 pieces of dynamic content: Filename: in the case of a S123 feature report, get this from the job result info Body: use the output of a http get request. In the case of S123 feature reports, use the url parameter returned by the job (if you leave out the uploadInfo parameter the report doesn't get created as a content item but you get a url directly to the Amazon S3 file) Token: token obtained from generateToken with built-in user credentials Here are some articles I used: https://ashiqf.com/2021/07/25/how-to-use-form-data-and-form-urlencoded-content-type-in-power-automate-or-logic-apps-http-action/ https://willpage.dev/2019/12/20/using-the-http-action-to-post-multipart-form-data-in-power-automate-logic-apps/
... View more
08-11-2021
05:45 AM
|
1
|
0
|
1442
|
POST
|
You probably solved it by now but I had the same question so here's the solution for other people who may be searching. The Report Header has a "Use as cover page" option. It's on the Format ribbon when the report header is selected in the TOC.
... View more
01-26-2021
10:04 AM
|
1
|
0
|
539
|
POST
|
Along these same lines, is there any way to modify the search result label? Currently all 12 records have the layer name and a coordinate. No way to tell them apart without clicking on them. If you're doing a "contains" type of search and multiple results, need a way to modify that label.
... View more
12-17-2020
07:32 AM
|
0
|
1
|
1068
|
POST
|
@JillianRizzo The generateToken request has a "referer" parameter. Is there a value I can provide that will satisfy the submitJob request? If not, do you have a bug # that I can give to tech support so I can get notified when the bug is addressed? Thanks
... View more
11-13-2020
08:19 AM
|
0
|
1
|
2264
|
POST
|
I have been automating feature report exporting via the API and I noticed a change this week that caused it to stop working with no change on my end. The sequence is to submit a job using https://survey123.arcgis.com/api/featureReport/createReport/submitJob with several parameters such as queryParameters, templateItemId, outputReportName, surveyItemId, featureLayerUrl, uploadInfo, outputFormat. Then follow up with https://survey123.arcgis.com/api/featureReport/jobs/<job_id>/status until the job returns esriJobSucceeded Starting this week, the status query returns esriJobFailed with a message "An error occurred when uploading result files to ArcGIS Online. 498: Invalid token." It seems that the report gets created but it can't upload it to ArcGIS Online. I use the same token for the initial submitJob request and the status requests. This has been working for a few months with no problem. I wonder if there was an update behind the scenes that changed something.
... View more
10-19-2020
02:06 PM
|
0
|
7
|
2354
|
Title | Kudos | Posted |
---|---|---|
1 | 11-08-2019 01:56 PM | |
1 | 05-09-2023 05:58 AM | |
1 | 08-11-2021 05:45 AM | |
2 | 08-03-2017 07:40 AM | |
3 | 04-21-2016 06:39 AM |
Online Status |
Offline
|
Date Last Visited |
02-26-2024
06:48 PM
|