Code Monkey home page Code Monkey logo

Comments (9)

ethgasstation avatar ethgasstation commented on August 12, 2024

Hi- yes- we just pushed an upgrade to the backend which supports web3.py version 4 (which uses hexbytes to store transaction data). If you update the backend, it should work now.

from ethgasstation-backend.

jonathanjm avatar jonathanjm commented on August 12, 2024

Hi,

Thanks for the update!

I updated but still getting the same error.
I didn't include this in my last post:
[ERROR] Traceback (most recent call last): File "/home/jonathan/.local/lib/python3.5/site-packages/mysql/connector/conversion.py", line 184, in to_mysql return getattr(self, "_{0}_to_mysql".format(type_name))(value) AttributeError: 'MySQLConverter' object has no attribute '_hexbytes_to_mysql'

Do I need to update the mysql-connector-python?

Thanks

from ethgasstation-backend.

ethgasstation avatar ethgasstation commented on August 12, 2024

Wow- good timing- I just fixed this now after your note- can you update your repo again and see if it is fixed now? You don't need to update mysql-connector.

from ethgasstation-backend.

jonathanjm avatar jonathanjm commented on August 12, 2024

:) thanks. I'll give it a try now

from ethgasstation-backend.

ethgasstation avatar ethgasstation commented on August 12, 2024

from ethgasstation-backend.

jonathanjm avatar jonathanjm commented on August 12, 2024

It fixed the issue above but now I'm getting this error from one of the code changes you made recently:
[ERROR] Traceback (most recent call last):
File "/home/jonathan/ethgasstation-backend/egs/main.py", line 235, in update_dataframes
report = SummaryReport(last1500t, last1500b, block)
File "/home/jonathan/ethgasstation-backend/egs/report_generator.py", line 50, in init
self.post['cheapestTxID'] = (self.tx_df.loc[(self.tx_df['minedGasPrice']==self.post['cheapestTx']) & (self.tx_df['gas_offered'] == 21000)].index[0]).lower()
File "/home/jonathan/.local/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 2069, in getitem
return getitem(key)
IndexError: index 0 is out of bounds for axis 0 with size 0

from ethgasstation-backend.

ethgasstation avatar ethgasstation commented on August 12, 2024

from ethgasstation-backend.

jonathanjm avatar jonathanjm commented on August 12, 2024

Yea, it keeps happening and it's not generating the .json files. I commented out that line for now to be able to get the files and noticed that self.post['avgTxFee'] = self.tx_df.loc[self.tx_df['gas_offered']==21000, 'minedGasPrice'].median() is returning NAN.

I tried to debug this and also noticed that web3.txpool.content is returning an empty array, I think this is a problem with my node and not your code.

from ethgasstation-backend.

ethgasstation avatar ethgasstation commented on August 12, 2024

from ethgasstation-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.