Comments (2)
Minimal reproduction of the problem:
>>> import protobuf.impl.usermessages_pb2 as um
>>> st = um.CUserMsg_SayText2()
>>> d = '\x08\x0b\x10\x01\x1a\rDOTA_Chat_All"\x1f\xd0\x9f\xd0\xb0\xd1\x88\xd0\xb0 \xd1\x87\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb0 \xd0\xbf\xd0\xbe\xd1\x82\xd1\x80\xd0\xbe\xd1*\x02+1'
>>> st.ParseFromString(d)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/google/protobuf/message.py", line 182, in ParseFromString
self.MergeFromString(serialized)
File "/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 795, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File "/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py", line 827, in InternalParse
pos = field_decoder(buffer, new_pos, end, self, field_dict)
File "/usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.py", line 410, in DecodeField
field_dict[key] = local_unicode(buffer[pos:new_pos], 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd1 in position 30: unexpected end of data
from skadi.
This is, unfortunately, a protobuf problem. I will make skadi 1.0 swallow this and other similar exceptions so the whole process doesn't give out. The associated user messages (in this case, chat messages) will not be provided to the consumer.
from skadi.
Related Issues (9)
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 skadi.