Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create NFT callback fails when store on backend #4

Open
hafael opened this issue Jul 4, 2021 · 6 comments
Open

Create NFT callback fails when store on backend #4

hafael opened this issue Jul 4, 2021 · 6 comments

Comments

@hafael
Copy link

hafael commented Jul 4, 2021

"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

@hafael
Copy link
Author

hafael commented Jul 4, 2021

the token was successfully registered in my wallet in 2 tests

@sebastiangula
Copy link
Contributor

@hafael Try setting the PURESTAKE_API_KEY to some non-empty value

@Mario2334
Copy link

I am also facing the same issue , Tried to set PURESTAKE API but still its the same issue

@Gravity-Feed
Copy link

Gravity-Feed commented Sep 12, 2021

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.

image

@DedicatedDev
Copy link

same issue here.

@DedicatedDev
Copy link

okay. this is just key problem. solved issue.

DedicatedDev added a commit to DedicatedDev/OpenNFT that referenced this issue Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants