question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gribapi.errors.WrongLengthError: Wrong message length

See original GitHub issue

this is my code, what’s wrong?

import xarray as xr

dss = xr.open_dataset('/home/jp/Desktop/C1D01010000010109001', engine='cfgrib',
                      backend_kwargs={'filter_by_keys': {'shortName': '2t'}})
print()

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
morestartcommented, May 25, 2022

i know your means, i will try this

0reactions
ChristopheLRTEcommented, May 25, 2022

Can your friend do a :

  • If windows 10 : certutil -hashfile C1D01010000010109001 SHA256
  • If linux : sha256sum C1D01010000010109001

You too and compare the results please ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

cfgrib fails on a GRIB file with one corrupted message with no ...
and got this error message: EcCodesError: ('Wrong message length (-23).', -23). No problem to open the data with other EcCodes scripts e.g.
Read more >
Python exception classes - ECMWF Confluence Wiki
class InvalidTypeError(CodesInternalError): """Invalid key type.""" class WrongLengthError(CodesInternalError): """Wrong message length.
Read more >
invalid message length .. - Google Groups
Hi ,. I am sending this message to the ISOServer but I am getting invalid message length. Please find the error.
Read more >
What can cause IOError: bad message length - Stack Overflow
I have been experiencing the same issue when the object I return from my child processes grow too large (in my cases tens...
Read more >
142 (GRIB_API ERROR : gridcheck: Error Key/value not found)
Your error message seems to be produced by the grib_api, not directly by the ... Also, did you put the lib path of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found