Bug in Autoscale Deployment

Question:

My code runs normally but when creating “Autoscale Deployment” says loop detected

hostingpid1: crash loop detected

info: Deployment: 2463988c-6726-4eb0-a67c-b42c0de154b3 - 2023-09-18T18:01:47.916Z
info: Build: 4f42ce8d-582a-443b-82fd-f89dba4efeb3 - 2023-09-18T18:01:47.917Z
info: Connecting to builder - 2023-09-18T18:01:47.918Z
info: Deployment: 2463988c-6726-4eb0-a67c-b42c0de154b3 - 2023-09-18T18:01:47.916Z
info: Build: 4f42ce8d-582a-443b-82fd-f89dba4efeb3 - 2023-09-18T18:01:47.917Z
info: Connecting to builder - 2023-09-18T18:01:47.918Z
info: Builder connected - 2023-09-18T18:01:50.022Z
info: Installing packages - 2023-09-18T18:01:51.202Z
info: Skipping Build as no Build command set - 2023-09-18T18:01:52.074Z
info: Language - 2023-09-18T18:01:52Z
info: Pushing pid1 binary layer... - 2023-09-18T18:01:52Z
info: Skipping Python layer creation - 2023-09-18T18:01:55Z
info: Skipping Node layer creation - 2023-09-18T18:01:55Z
info: Pushing Repl layer... - 2023-09-18T18:01:55Z
info: Pushing hosting layer... - 2023-09-18T18:01:55Z
info: Nix layers for this Repl are uncached. - 2023-09-18T18:01:56Z
info: Pushing nix-0 layer... - 2023-09-18T18:01:56Z
info: Created hosting layer - 2023-09-18T18:01:57Z
info: Created pid1 binary layer - 2023-09-18T18:02:00Z
info: Created Repl layer - 2023-09-18T18:02:40Z
info: Pushing Repl (cache) layer... - 2023-09-18T18:02:40Z
info: Created Repl (cache) layer - 2023-09-18T18:03:01Z
info: Created nix-0 layer - 2023-09-18T18:03:06Z
info: uploading image for cached layer - 2023-09-18T18:03:06Z
info: pushed cache image manifest - 2023-09-18T18:03:08Z
info: pushed cache soci index manifest - 2023-09-18T18:03:09Z
info: uploading cached layer - 2023-09-18T18:03:09Z
info: succesfully uploaded cached layer - 2023-09-18T18:03:09Z
info: Pushed image manifest - 2023-09-18T18:03:11Z
info: Pushed soci index manifest - 2023-09-18T18:03:12Z
info: Creating Autoscale service - 2023-09-18T18:03:18.346Z
starting up user application
    return self._get('ping', version=self.PRIVATE_API_VERSION)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/main.py", line 24, in <module>
    self.__orderInfo = dict(users=self.getOrderInfo())
    return self._request(method, uri, signed, **kwargs)
Traceback (most recent call last):
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 344, in getOrderInfo
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 344, in __init__
binance.exceptions.BinanceAPIException: APIError(code=0): Service unavailable from a restricted location according to 'b. Eligibility' in https://www.binance.com/en/terms. Please contact customer service if you believe you received this message in error.
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 570, in ping
    self.ping()
    orderCorresponding = SqlalchemyData.orderCorresponding(order)
    return self._request_api('get', path, signed, version, **kwargs)
    raise BinanceAPIException(response, response.status_code, response.text)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 324, in orderCorresponding
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 243, in __init__
    return self._handle_response(self.response)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 368, in _handle_response
    futures = SqlalchemyData.createFutures(order)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 320, in createFutures
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 378, in _request_api
    sqlalchemyData = SqlalchemyData()
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 359, in _request
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 415, in _get
    return Futures(Client(apiKey, apiSecret), symbol)
    futures = SqlalchemyData.createFutures(order)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/main.py", line 24, in <module>
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 359, in _request
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 344, in __init__
    return self._request(method, uri, signed, **kwargs)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 320, in createFutures
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 570, in ping
    raise BinanceAPIException(response, response.status_code, response.text)
exec [sh -c python main.py] error=exit status 1
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 415, in _get
binance.exceptions.BinanceAPIException: APIError(code=0): Service unavailable from a restricted location according to 'b. Eligibility' in https://www.binance.com/en/terms. Please contact customer service if you believe you received this message in error.
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 243, in __init__
    sqlalchemyData = SqlalchemyData()
    return Futures(Client(apiKey, apiSecret), symbol)
    orderCorresponding = SqlalchemyData.orderCorresponding(order)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 344, in getOrderInfo
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 378, in _request_api
    return self._handle_response(self.response)
Traceback (most recent call last):
    return self._get('ping', version=self.PRIVATE_API_VERSION)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 368, in _handle_response
    self.__orderInfo = dict(users=self.getOrderInfo())
exec [sh -c python main.py] error=exit status 1
    self.ping()
    return self._request_api('get', path, signed, version, **kwargs)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 324, in orderCorresponding
    return self._handle_response(self.response)
    return self._request_api('get', path, signed, version, **kwargs)
    return self._request(method, uri, signed, **kwargs)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 570, in ping
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 344, in __init__
    return Futures(Client(apiKey, apiSecret), symbol)
    sqlalchemyData = SqlalchemyData()
exec [sh -c python main.py] error=exit status 1
    self.ping()
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 320, in createFutures
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/main.py", line 24, in <module>
    self.__orderInfo = dict(users=self.getOrderInfo())
    return self._get('ping', version=self.PRIVATE_API_VERSION)
    orderCorresponding = SqlalchemyData.orderCorresponding(order)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 368, in _handle_response
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 415, in _get
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 344, in getOrderInfo
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 243, in __init__
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/_3teeb/models.py", line 324, in orderCorresponding
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 359, in _request
    futures = SqlalchemyData.createFutures(order)
  File "/home/runner/2463988c-6726-4eb0-a67c-b42c0de154b3/venv/lib/python3.10/site-packages/binance/client.py", line 378, in _request_api
binance.exceptions.BinanceAPIException: APIError(code=0): Service unavailable from a restricted location according to 'b. Eligibility' in https://www.binance.com/en/terms. Please contact customer service if you believe you received this message in error.
    raise BinanceAPIException(response, response.status_code, response.text)
Traceback (most recent call last):
hostingpid1: crash loop detected
error: The deployment failed to initialize due to a configuration or code error. Check the logs tab for more information. For additional support, please post on https://ask.replit.com/c/help/13 and a staff member will take a look. - 2023-09-18T18:04:07.319Z
1 Like

Seems like wherever the deployment deployed to is a banned location for binance.

2 Likes