Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

createReplica Broken? #190

Closed flynryan closed 8 years ago

flynryan commented 8 years ago

I use the createReplica function in 3 scripts and they have all broke on 2/29/16.

MikeMillerGIS commented 8 years ago

can you share the error you are receiving?

flynryan commented 8 years ago

I'm not getting an error, if you use the sample code the print will be none or []. It's when I try to use the replica that the code breaks. That error is "out of range"

MikeMillerGIS commented 8 years ago

The sample works for me, here is a service you can test. http://services2.arcgis.com/PWJUSsdoJDp7SgLj/arcgis/rest/services/JointUseSurvey/FeatureServer

Can you verify your service has sync enabled? What permissions do you have in your org?

flynryan commented 8 years ago

Using your service I get an HTTP error 500, All of my services are sync enabled and I'm an Admin in my org. I've had these scripts working for over a year, nothing has changed on my side.

MikeMillerGIS commented 8 years ago

Could you provide us an account and the url to your service to trouble shoot the issue as I cannot repo it on our services?

flynryan commented 8 years ago

Account: user: ESRI_Temp pass: ESRITEMP1

http://services1.arcgis.com/bF44QtfoYZDGo7TK/arcgis/rest/services/TrafficRequests/FeatureServer

Try these

MikeMillerGIS commented 8 years ago

It worked as expected, here is the resulting replica.
image

MikeMillerGIS commented 8 years ago

I am using the version of ArcRest in Master

flynryan commented 8 years ago

I think I'm using a version 3. I know its not the current. I probably have 10 scripts using arcrest if I upgrade the version will it break all of them or does most of the code carry over?

MikeMillerGIS commented 8 years ago

I guess it depends on the scripts. Some will just work, some things did change.

flynryan commented 8 years ago

Thank Mike I'll upgrade on a test machine and check them one at a time. Hopefully that fixes it.