Create NFT callback fails when store on backend
"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
the token was successfully registered in my wallet in 2 tests
@hafael Try setting the PURESTAKE_API_KEY to some non-empty value
I am also facing the same issue , Tried to set PURESTAKE API but still its the same issue
Hi. I think I am having the same problem. I have the software deployed, but when I go to Create an NFT, I get this error message: "Error. Could not broadcast this information to internal service."
Do you have any ideas on what may be going wrong or how to fix it? Thank you for your assistance.

same issue here.
okay. this is just key problem. solved issue.