ulamlabs / opennft Goto Github PK
View Code? Open in Web Editor NEWCloud-native platform for building an NFT Marketplace on top of Algorand blockchain.
Home Page: https://opennft.ulam.io
License: MIT License
Cloud-native platform for building an NFT Marketplace on top of Algorand blockchain.
Home Page: https://opennft.ulam.io
License: MIT License
Hi, I deployed OpenNFT and then I created an NFT following the guide in the Readme:
But I am getting a 503 response, with "not found" logs in the backend when I try to click on the NFT to get into the NFT view. This is what I visually get:
In the backend the logs show:
Request obtained with "Copy as fetch" from the Chrome Dev Tools:
fetch("https://sweatymarketplace.turuta.pe/api/assets/f6fdd7cfa17848bca425a25588359301/", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9,es-PE;q=0.8,es;q=0.7",
"sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"96\", \"Google Chrome\";v=\"96\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"x-view-as": "SVSDG66EJMI4DOU2XISMAL6ANG5M7DPVSMSAIBYQBVSIIWGLQ3JC5VBKAU"
},
"referrer": "https://sweaty-marketplace.web.app/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": null,
"method": "GET",
"mode": "cors",
"credentials": "omit"
});
This is how my NFT looks in the django admin:
Thanks in advance.
The method described in #7 can be extended to other OnComplete options, therefore the escrow account needs to check the value of the OnComplete field in SSC call transactions in the group.
As suggested. I am deploying backend on GCP and frontend on Vercel. But it is giving error of CORS policy on fromtend as backend and frontend are not on same server.
Can you please explain about it.
Thanks
"OPTIONS /api/assets/validate_asset/ HTTP/1.1" 200 0
"POST /api/assets/validate_asset/ HTTP/1.1" 200 0
"OPTIONS /api/assets/submit_asset/ HTTP/1.1" 200 0
Internal Server Error: /api/assets/submit_asset/
Traceback (most recent call last):
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/Volumes/Macintosh HD/Users/rafael/Work/OpenNFT/backend/nft_market/api/views.py", line 232, in submit_asset
asset_config = deployment.AssetCreation.find_and_validate(
File "/Volumes/Macintosh HD/Users/rafael/Work/OpenNFT/backend/nft_market/utils/deployment.py", line 41, in find_and_validate
found_txs = algorand.indexer.search_asset_transactions(
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/algosdk/v2client/indexer.py", line 463, in search_asset_transactions
return self.indexer_request("GET", req, query, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/algosdk/v2client/indexer.py", line 71, in indexer_request
resp = urlopen(req)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1385, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1342, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1296, in _send_request
self.putheader(hdr, value)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1232, in putheader
if _is_illegal_header_value(values[i]):
TypeError: expected string or bytes-like object
"POST /api/assets/submit_asset/ HTTP/1.1" 500 151892
"OPTIONS /api/assets/submit_asset/ HTTP/1.1" 200 0
Internal Server Error: /api/assets/submit_asset/
Traceback (most recent call last):
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/Volumes/Macintosh HD/Users/rafael/Work/OpenNFT/backend/nft_market/api/views.py", line 232, in submit_asset
asset_config = deployment.AssetCreation.find_and_validate(
File "/Volumes/Macintosh HD/Users/rafael/Work/OpenNFT/backend/nft_market/utils/deployment.py", line 41, in find_and_validate
found_txs = algorand.indexer.search_asset_transactions(
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/algosdk/v2client/indexer.py", line 463, in search_asset_transactions
return self.indexer_request("GET", req, query, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/algosdk/v2client/indexer.py", line 71, in indexer_request
resp = urlopen(req)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1385, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1342, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1296, in _send_request
self.putheader(hdr, value)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1232, in putheader
if _is_illegal_header_value(values[i]):
TypeError: expected string or bytes-like object
"POST /api/assets/submit_asset/ HTTP/1.1" 500 151892
"OPTIONS /api/assets/submit_asset/ HTTP/1.1" 200 0
Internal Server Error: /api/assets/submit_asset/
Traceback (most recent call last):
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/Volumes/Macintosh HD/Users/rafael/Work/OpenNFT/backend/nft_market/api/views.py", line 232, in submit_asset
asset_config = deployment.AssetCreation.find_and_validate(
File "/Volumes/Macintosh HD/Users/rafael/Work/OpenNFT/backend/nft_market/utils/deployment.py", line 41, in find_and_validate
found_txs = algorand.indexer.search_asset_transactions(
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/algosdk/v2client/indexer.py", line 463, in search_asset_transactions
return self.indexer_request("GET", req, query, **kwargs)
File "/Users/rafael/Library/Caches/pypoetry/virtualenvs/nft-market-qW3KNRCw-py3.9/lib/python3.9/site-packages/algosdk/v2client/indexer.py", line 71, in indexer_request
resp = urlopen(req)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1385, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1342, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1296, in _send_request
self.putheader(hdr, value)
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1232, in putheader
if _is_illegal_header_value(values[i]):
TypeError: expected string or bytes-like object
"POST /api/assets/submit_asset/ HTTP/1.1" 500 151892
Can you provide installation service?
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:
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
I am having issue at the last step of creating NFT. Image is successfully uploaded to bucket but there is problem at deploy contract
main error:
Internal Server Error: /api/contracts/compile_manager/ pyteal.TealCompileError: Scratch slot load occurs before store
I think this is related to reported issue
here is the full traceback
`pyteal.TealInternalError: Encountered 1 error during compilation
"POST /api/contracts/compile_manager/ HTTP/1.1" 500 145
Internal Server Error: /api/contracts/compile_manager/
pyteal.TealCompileError: Scratch slot load occurs before store
Traceback of origin expression (most recent call last):
File "/usr/lib/python3.6/threading.py", line 884, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/socketserver.py", line 654, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.6/socketserver.py", line 364, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.6/socketserver.py", line 724, in init
self.handle()
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 176, in handle
self.handle_one_request()
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 201, in handle_one_request
handler.run(self.server.get_app())
File "/usr/lib/python3.6/wsgiref/handlers.py", line 137, in run
self.result = application(self.environ, self.start_response)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 133, in call
response = self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/base.py", line 130, in get_response
response = self._middleware_chain(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/utils/deprecation.py", line 117, in call
response = response or self.get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/ahmadmanzoor_mam/OpenNFT/backend/nft_market/api/views.py", line 100, in compile_manager
manager_teal = contracts.get_manager_teal()
File "/home/ahmadmanzoor_mam/OpenNFT/backend/nft_market/contracts/contracts.py", line 29, in get_manager_teal
return compileTeal(ManagerContract().get_contract(), Mode.Application)
File "/home/ahmadmanzoor_mam/OpenNFT/backend/nft_market/contracts/assets/manager.py", line 349, in get_contract
[Txn.application_args[0] == Bytes("B"), self.on_bid()],
File "/home/ahmadmanzoor_mam/OpenNFT/backend/nft_market/contracts/assets/manager.py", line 88, in on_bid
is_valid_tx.load(TealType.uint64) == Int(1),
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/pyteal/ast/scratch.py", line 37, in load
return ScratchLoad(self, type)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/pyteal/ast/scratch.py", line 63, in init
super().init()
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/ahmadmanzoor_mam/OpenNFT/backend/nft_market/api/views.py", line 100, in compile_manager
manager_teal = contracts.get_manager_teal()
File "/home/ahmadmanzoor_mam/OpenNFT/backend/nft_market/contracts/contracts.py", line 29, in get_manager_teal
return compileTeal(ManagerContract().get_contract(), Mode.Application)
File "/home/ahmadmanzoor_mam/.local/lib/python3.6/site-packages/pyteal/compiler.py", line 171, in compileTeal
raise TealInternalError(msg) from errors[0]
pyteal.TealInternalError: Encountered 1 error during compilation
"POST /api/contracts/compile_manager/ HTTP/1.1" 500 145`
So I am testing locally and i see that the transactions cannot be signed
The JS error thrown is
Uncaught (in promise) Error: assetMetadataHash must be a 32 byte Uint8Array or string.
at MyAlgoConnect.signTransaction (main.js?a441:341:1)
and I believe it has to do with the file /frontend/src/components/cards/AddAssetCard.vue
metadataHash: assetUUID.replaceAll('-', '')
the uuid is not a correct format.
if I remove this the transaction is signed but I notice that the app is stuck on waiting for confirmation
Can't a registered user create and sell nft?
Hello,
First of all, amazing job on making this open source and available under MIT license !
I have a few questions on documentation:
Would appreciate any reply on any of the above! Thanks in advance !
I'm trying to figure out why the creation cost is set how it is.
The 1.508 amount in particular seems higher than necessary.
Any help would be appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.