Comments (6)
@jerryfane 1.1.8 should contain the fix for you. Please confirm and I will close this issue.
from eospy.
Worked fine for 2 transactions, then this new error appeared...
Traceback (most recent call last):
File "C:\Users\Jerry\AppData\Local\Programs\Python\Python36\lib\site-packages\eospy\dynamic_url.py", line 41, in post_url
r.raise_for_status()
File "C:\Users\Jerry\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\models.py", line 937, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://eos.greymass.com/v1/chain/push_transaction
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pycleos.py", line 51, in <module>
resp = ce.push_transaction(trx, key, broadcast=True)
File "C:\Users\Jerry\AppData\Local\Programs\Python\Python36\lib\site-packages\eospy\cleos.py", line 169, in push_transaction
return self.post('chain.push_transaction', params=None, data=data, timeout=timeout)
File "C:\Users\Jerry\AppData\Local\Programs\Python\Python36\lib\site-packages\eospy\cleos.py", line 31, in post
return cmd.post_url(url, **kwargs)
File "C:\Users\Jerry\AppData\Local\Programs\Python\Python36\lib\site-packages\eospy\dynamic_url.py", line 43, in post_url
raise requests.exceptions.HTTPError('Error: {}'.format(r.json()))
requests.exceptions.HTTPError: Error: {'code': 500, 'message': 'Internal Service Error', 'error': {'code': 3050003, 'name': 'eosio_assert_message_exception', 'what': 'eosio_assert_message assertion failure', 'details': [{'message': 'assertion failure with message: unable to find key', 'file': 'wasm_interface.cpp', 'line_number': 917, 'method': 'eosio_assert'}, {'message': 'pending console output: ', 'file': 'apply_context.cpp', 'line_number': 72, 'method': 'exec_one'}]}}
assertion failure with message: unable to find key
from eospy.
Can you share what you are trying to do? If it was the same call and it failed the 3rd time it may be an issue with your setup. Others have had similar issues:
EOSIO/eos#3653
from eospy.
I'm just trying to send a simple token transfer in the mainnet, you can check my code here, it's basically the same as the example in this git.
from eospy.cleos import Cleos
import eospy.keys
ce = Cleos(url='https://eos.greymass.com')
key = eospy.keys.EOSKey('MYPRIVATEKEY')
memo = "{'type': 'sell-limit', 'symbol': 'parslseed123-seed-eos', 'price': '0.00124', 'channel': 'API'}"
payload = [
{
'args': {
"from": "myaccount", # sender
"to": "receiveraccount, # receiver
"quantity": "0.0001 EPRA", # In EOS
"memo": str(memo),
},
"account": "eosio.token",
"name": "transfer",
"authorization": [{
"actor": "myaccount",
"permission": "active",
}],
}
]
#payload[0]['args']['memo'] = str(memo)
print(payload[0]['args']['memo'])
print(payload[0]['args']['quantity'])
#print(memo[0]['type'])
#Converting payload to binary
data=ce.abi_json_to_bin(payload[0]['account'],payload[0]['name'],payload[0]['args'])
#Inserting payload binary form as "data" field in original payload
payload[0]['data']=data['binargs']
#Removing the arguments field
payload[0].pop('args')
#final transaction formed
trx = {"actions":[payload[0]]}
resp = ce.push_transaction(trx, key, broadcast=True)
print(resp)
I've tried with many tokens and amounts
from eospy.
You can close this thread.
The assertion failure with message: unable to find key was due to an error on my code. I was trying to transfer non EOS token by using the eosio.token contract. Now everything is working, thank you for your time!
from eospy.
Thanks and I apologize for not getting back to you in a timely manner.
from eospy.
Related Issues (20)
- Do you have security problems using abi_json_to_bin in your code? HOT 4
- Internal Service Error, unsatisfied_authorization HOT 2
- Create multisig account HOT 6
- "ImportError: cannot import name ABC" HOT 1
- Set Contract HOT 2
- Deserialize a packed trx offline HOT 5
- Can you please publish [email protected] to pypi? HOT 1
- What are the potential risks using eospy EOSKey for mainnet? HOT 1
- long sign time and eosjs verify HOT 20
- what function is equal to eosjs-ecc's ecc.sign or ecc.signHash HOT 1
- create other eosin.token example HOT 1
- AttributeError in example/push_transaction HOT 6
- Can't sign transaction with key.sign(digest)
- 3.6.5 int/float issue HOT 1
- set_code and set_abi do not work HOT 1
- HTTPConnectionPool(host='api.pennstation.eosnewyork.io', port=7001): Max retries exceeded with url: /v1/chain/abi_json_to_bin (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75c91050>: Failed to establish a new connection: [Errno 111] Connection refused' HOT 2
- Missing changelog HOT 2
- Get children account list HOT 1
- Getting InvalidKeyFile Error HOT 2
- ImportError: cannot import name 'InvalidKeyFile' from 'eospy.exceptions' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eospy.