POST
|
Yes its no problem for me to make a custom refreshToken function, I was just wondering if it the IdentityManager tries to update it automatically? Because that would give an error
... View more
09-20-2019
11:05 AM
|
0
|
1
|
3351
|
POST
|
Do I need to automatically refresh it? The token comes from a proxy server. I don't understand how to set a custom refresh token function
... View more
09-20-2019
09:51 AM
|
0
|
3
|
3351
|
POST
|
We're trying to embed a web map from ou ArcGIS Online on our corporate web app. So we implemented a server-side token generator, since our app users don't have (and shouldn't) a ArcGIS Online account, only the server through a client_id and client_secret. But I couldn't find a way to authenticate through the JS API using only a token or setting a custom getToken function. I tried to simply add the token to the layer url, but it opened the login popup : const testLayer = new FeatureLayer({ url: "https://services3.arcgis.com/.../ArcGIS/rest/services/.../FeatureServer/0?token=..." });
Ideally I also want the Javascript to able to access an ArcGIS Online item using only the token, for example a web map JSON. Using ArcGIS Javascript API 4
... View more
09-20-2019
06:11 AM
|
0
|
7
|
3600
|
POST
|
We never found an exact solution, just bothered tech support untill it the error stopped. The problem is mostly due to not being able to batch query attachments, you have do one a new request for each record.
... View more
09-20-2019
06:03 AM
|
0
|
0
|
1135
|
IDEA
|
In our company we ended up having to spend a lot of resources resizing image attachments after downloading them using the REST API, I feel like this is an expected feature of any image-serving API that is severely missing. Also another major issue is that you have to make a different request for every feature to get it's attachment info, why can't we just send an array of OIDs and get an array of attachment infos? Also this has spawned a temporary 503 error on your CloudFront that took some time to get solved. So, in short : - Endpoint to get attachment image resized - Endpoint to get batch attachments
... View more
03-29-2019
07:36 AM
|
3
|
0
|
316
|
POST
|
My question involves both Javascript and Python, so I'll post in both forums. I'm developing an API for custom geoprocessing tasks done in Python, and I'm trying to use AGOL Oauth2 authentication to authorize users to using my API. Here's the flow : 1) User a custom WebAppBuilder application, and logs in via his AGOL Organization 2) Custom Javascript code makes a requests to the custom API and appends a Token 3) Python then makes a request to verify if this token is valid. My problem here is with steps 1 and 2, 2 being the related to this forum. Pseudo example of python API: def authenticate(request):
token = request.token #Or whatever other information is necessary
valid = arcpy.isAuthenticated(token) #Just a pseudo example
if valid:
return Response.ok()
return Response.fail()
All I need is to Authorize the token, NOT Authenticate. I just need the OAuth server to tell me this Token is valid and not expired. Or I'm also open to other suggestions to implement authorization in my API without requesting user credentials (as he already is logged in)
... View more
03-01-2019
09:25 AM
|
0
|
0
|
293
|
POST
|
How about asking the Popup to "select" multiples features at once, is this possible?
... View more
02-25-2019
05:57 AM
|
0
|
1
|
489
|
POST
|
So, I realized that FeatureLayer.selectFeatures does not adds the default lightblue highlight, you need to set the layer's selection symbol, so I copied the popup's one so that it looks the same : function setFeatureToDefaultHighlightSymbol(fl){ const type = fl.geometryType; if(type === 'esriGeometryPoint'){ fl.setSelectionSymbol(this.map.infoWindow.markerSymbol); }else if(type === 'esriGeometryPolyline'){ fl.setSelectionSymbol(this.map.infoWindow.lineSymbol); }else{ fl.setSelectionSymbol(this.map.infoWindow.fillSymbol); } } So, I call the above before calling the selectFeatures method, problem is, instead of adding a symbol on top of layer symbol, it substitutes for this one, so it ONLY show the lightblue highlight border. My question is, how can I have the same behaviour as when I click a feature? My guess is that the Popup adds the selection symbol on the Map graphics layer on top of the clicked feature, but can I do this without having to manage graphics added to another layer?
... View more
02-25-2019
05:24 AM
|
0
|
3
|
558
|
POST
|
I have already posted a similar question, but we've narrowed down the error and now have more specific information. This error happens in every part of our organization's REST API which are located in the services3 server, we have another organization and also tested creating new organizations which are not in services3 and the error could not be emulated. We are testing and trying to workaround this error for almost a month now, managed to narrow it down but no solution I'm afraid. The 503 error comes from AWS CloudFront, which basically means an overload on the server. We first saw the error while using the JS API, but the error is directly at the API REST point, you can get the error just by navigating to the API through your browser. It is seemingly random, but it has a higher chance of happening when you do several queries in a row, in our case it happens almost 100% of the time since we're gathering the attachments of a layer in batch, and you must do a separate attachment query for each feature. It also has a high chance of happening when an user opens an web application with several different layers. The only workaround we found was to, when an certain URL fails on a browser tab, you open that same URL in a new tab, refresh it, go back to the original tab and it should work, so the server limitation seems to be related to client sessions. I do believe it's an overload on the services3 machine, it's an old server that most sample layers from ESRI are hosted in, if you create a new AGOL account right now it will be at services9 (as of today), which will give you no errors. This error has completely halted our development cicle and application deployment. I'm posting here as our local support is not direct with ESRI and it's taking way too long of a time to get any progress. You can see a similar discussion here : ArcGIS Online Reader/Writer Error: Code 503 - FME Knowledge Center
... View more
01-24-2019
03:23 AM
|
1
|
9
|
1615
|
POST
|
Upon further inspection, the error is coming from Amazon CloudFront, more specifically this error : HTTP 503 Status Code (Service Unavailable) - Amazon CloudFront So it means ESRI's server hit a limit, this has been happening with many of our layers and it's quite problematic.
... View more
01-18-2019
08:57 AM
|
0
|
0
|
906
|
POST
|
I was trying to avoid that as here in Brazil its a third party company that does the ESRI support, but I'll start the support hopefully it will be fast.
... View more
01-11-2019
04:22 AM
|
0
|
0
|
906
|
POST
|
Just tried that, duplicated the layer and republished it as public, same error.
... View more
01-11-2019
04:20 AM
|
0
|
0
|
906
|
POST
|
The error seems to be happening with other services, we've gotten feedback in our company today that some applications failed to load, although a refresh usually fixed it. Where we're from we don't have access to Esri Support
... View more
01-10-2019
11:29 AM
|
0
|
0
|
906
|
POST
|
Hello, I'm getting an error "503 : An error occurred" seemingly random when trying to query attachments from a query. The feature is the following, but its not public : https://services3.arcgis.com/KjwM1xptHuBxMVga/ArcGIS/rest/services/Área_de_Anotação_de_Desvios/FeatureServer/0 I couldn't find a pattern on when it happens, but if you for example go to a specific feature's attachment info (...FeatureServer/0/1/attachments) and keep refreshing the browser it should eventually happen. And more for sure way it to query the attachment info for each feature via Javascript, that's how I reached this issue, but even then it sometimes work. That's all I have, there's no extra message being returned. Edit: I've just noticed this doesn't just happen with attachment queries, it also happens with feature queries
... View more
01-10-2019
04:07 AM
|
0
|
7
|
1166
|
Title | Kudos | Posted |
---|---|---|
3 | 03-29-2019 07:36 AM | |
1 | 01-24-2019 03:23 AM |
Online Status |
Offline
|
Date Last Visited |
02-20-2024
10:20 AM
|