OpenNFT icon indicating copy to clipboard operation
OpenNFT copied to clipboard

Validation failed for transaction because of invalid properties [group]

Open paulosuzart opened this issue 3 years ago • 7 comments

Hey all, after running locally following the README, I managed to connect with my wallet, but then when I click deploy contract I get:

vuex.esm.js?2f62:542 Uncaught (in promise) {message: 'Validation failed for transaction because of invalid properties [group].'}

The head commit of master branch I'm using is e1b7e469aa1df99958d55e821dd673b281cdd620.

Steps to reproduce the issue:

  1. connect wallet
  2. create NFT

After the celery worker throws:

[2021-12-09 17:48:16,820: ERROR/ForkPoolWorker-1] Task nft_market.api.tasks.index_operations[ad4468a7-3d79-43da-b72f-833e0f43448c] raised unexpected: JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
Traceback (most recent call last):
  File "/home/paul/.cache/pypoetry/virtualenvs/nft-market-6HV2EhMW-py3.9/lib/python3.9/site-packages/celery/app/trace.py", line 405, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/paul/.cache/pypoetry/virtualenvs/nft-market-6HV2EhMW-py3.9/lib/python3.9/site-packages/celery/app/trace.py", line 697, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/paul/workspace/algorand/OpenNFT/backend/nft_market/api/tasks.py", line 109, in index_operations
    response = algorand.explorer.search_transactions(**params)
  File "/home/paul/workspace/algorand/OpenNFT/backend/nft_market/services/algorand.py", line 99, in search_transactions
    print(r.json())
  File "/home/paul/.cache/pypoetry/virtualenvs/nft-market-6HV2EhMW-py3.9/lib/python3.9/site-packages/requests/models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.9/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)

And the frontend enters to the #/admin/add-nft/f7b91685a185449e9ad77d699b78ea48?start=true where you can see the asset but then upon clicking Deploy Contract the message in the title of this issue is displayed in the console.

I tried to tweak the front end to see what is happening but couldn't do much. I found a more or less related topic https://forum.algorand.org/t/validation-failed-for-transaction-because-of-invalid-properties-group/5330.

I can't find the source of the error in the backend. Also not sure if the error in the front end is collateral, or if they are completely unrelated.

Environment: Ubuntu 20, Python 3.9.9, SQLite, PureStake credential correctly set. Some of the related transactions found in the explore. Happy to provide more details and try to help more. Thanks

paulosuzart avatar Dec 09 '21 17:12 paulosuzart

Added a bit more log and the error in that task is an HTTP 502. It seems unrelated to the issue in the front end.

paulosuzart avatar Dec 09 '21 20:12 paulosuzart

@paulosuzart did you solve this problem?

soring323 avatar Dec 12 '21 21:12 soring323

Not solved yet. Thank you.

paulosuzart avatar Dec 13 '21 12:12 paulosuzart

this related group id in algosdk. so frontend problem. I'm discussing with algorand sdk support. they are saying, have to convert transaction as AlgoSdk.Transaction. But I guess it already implemented in this code. not sure still issue. Thank you.

soring323 avatar Dec 13 '21 13:12 soring323

Hi, everyone, just wanted to say I am also running into this issue, any help would be appreciated 🙏

j05u3 avatar Dec 29 '21 18:12 j05u3

Btw, are you using Algosigner or MyAlgo as wallet?, it happens with both wallets?

I am using algosigner because I couldn't connect with MyAlgo wallet (because of another error).

j05u3 avatar Dec 29 '21 19:12 j05u3

please debug in frontend, you will see issue. you have to convert Transaction address with Uint8 array. in this case, it will work with MyAlgo. About Agosigner, you have to use AlgoSDK.Transaction.

soring323 avatar Dec 30 '21 10:12 soring323