tinymanorg / tinyman-py-sdk

Tinyman Python SDK
MIT License
117 stars 60 forks source link

Error while trying to swap asset #32

Closed ObiajuluM closed 2 years ago

ObiajuluM commented 2 years ago

i tried to swap Algo to usdc, i received this error:

Traceback (most recent call last):
  File "c:\Users\0xEarl\Desktop\tiny\venv\lib\site-packages\algosdk\v2client\algod.py", line 87, in algod_request
    e = json.loads(e)["message"]
  File "C:\Users\0xEarl\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Users\0xEarl\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\0xEarl\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\0xEarl\Desktop\tiny\sw.py", line 76, in <module>
    a = tiny_opt_in(client, accountd['address'], accountd['private_key'])
  File "c:\Users\0xEarl\Desktop\tiny\sw.py", line 48, in tiny_opt_in
    if (not client.is_opted_in()):
  File "c:\Users\0xEarl\Desktop\tiny\venv\lib\site-packages\tinyman\v1\client.py", line 83, in is_opted_in
    account_info = self.algod.account_info(user_address)
  File "c:\Users\0xEarl\Desktop\tiny\venv\lib\site-packages\algosdk\v2client\algod.py", line 108, in account_info
    return self.algod_request("GET", req, **kwargs)
  File "c:\Users\0xEarl\Desktop\tiny\venv\lib\site-packages\algosdk\v2client\algod.py", line 89, in algod_request
    raise error.AlgodHTTPError(e, code)
algosdk.error.AlgodHTTPError: <html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>