POST
|
Did anyone having the problem on extending their Survey123 form with JavaScript code? I was trying to get the day of week by passing the date I selected from the form to my JavaScript function and show the day of week on the form. I found that the function returns 0 for Sunday when using Survey123 Connect while returns 0 for Monday when manipulating on every browser. What I code in that function was simple, just return new Date(inputDate).getDay(); .
... View more
10-30-2020
12:30 PM
|
0
|
1
|
327
|
POST
|
I'm trying to copy a feature service from an AGOL organization to another AGOL account. And I'm keep receiving the following error. ConnectionResetError Traceback (most recent call last) c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args) 1321 h.request(req.get_method(), req.selector, req.data, headers, -> 1322 encode_chunked=req.has_header('Transfer-encoding')) 1323 except OSError as err: # timeout error c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py in request(self, method, url, body, headers, encode_chunked) 1253 """Send a complete request to the server.""" -> 1254 self._send_request(method, url, body, headers, encode_chunked) 1255 c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py in _send_request(self, method, url, body, headers, encode_chunked) 1299 body = _encode(body, 'body') -> 1300 self.endheaders(body, encode_chunked=encode_chunked) 1301 c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py in endheaders(self, message_body, encode_chunked) 1248 raise CannotSendHeader() -> 1249 self._send_output(message_body, encode_chunked=encode_chunked) 1250 c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py in _send_output(self, message_body, encode_chunked) 1074 + b'\r\n' -> 1075 self.send(chunk) 1076 c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\http\client.py in send(self, data) 995 try: --> 996 self.sock.sendall(data) 997 except TypeError: c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py in sendall(self, data, flags) 974 while count < amount: --> 975 v = self.send(byte_view[count:]) 976 count += v c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py in send(self, data, flags) 943 self.__class__) --> 944 return self._sslobj.write(data) 945 else: c:\Users\PC\AppData\Local\Programs\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ssl.py in write(self, data) 641 """ --> 642 return self._sslobj.write(data) 643 ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host All the other feature services I tried work fine. I found that one of my sublayers of the feature service was consisted by complicated polygon shape which may cause the content length too large to be cloned. Does anyone has the same problem same with me? or does anyone know how may I set the request keep live while cloning? Thanks.
... View more
09-20-2020
10:39 AM
|
1
|
1
|
831
|
Title | Kudos | Posted |
---|---|---|
1 | 09-20-2020 10:39 AM |
Online Status |
Offline
|
Date Last Visited |
12-15-2022
08:01 AM
|