Comments (12)
thanks @titilambert
looks like a bug! I'll get this looked at over the coming days. You're welcome to raise a PR too if you'd like to help out?
otherwise I'll sort this out next weekend.
Thanks for bringing this to my attention.
from wampy.
@noisyboiler I has been trying to fix it since yesterday, without success :(
I will continue to try, I hope you will be quicker than me :)
from wampy.
This vaguely rings a bell, can someone with the problem humour me and tell me what this comes back with?
python -c 'import sys; print(sys.getdefaultencoding())'
from wampy.
$ python -c 'import sys; print(sys.getdefaultencoding())'
ascii
$ python3 -c 'import sys; print(sys.getdefaultencoding())'
utf-8
from wampy.
Ok, are you mixing v2/v3 with client / server? If so, that may be the issue, setting both to utf-8 could well sort the problem. Number of ways of doing this, in the past I've change the default encoding in "sitecustomize.py", see this article on stackoverflow
from wampy.
@oddjobz Sorry, my answer wasn't clear, I'm using python 3 ONLY. I just wanted to give the difference with python 2
from wampy.
Ok, but the issue "looks" like it's trying to decode something in utf-8 that's been encoded in something other than utf-8. (historically this problem is typical of swapping data between v2 and v3 instances) I don't suppose you're specifically changing the encoding anywhere in your code?
from wampy.
@titilambert
can you try substituting one of wampy's existing test case calls with the text text='100éfa'
to see if this is a wampy problem or not?
I'd like coverage of this regardless so it's something I'll try asap, but you're welcome to raise a PR that adds the coverage with a new test for this - else proves there is a bug!
thanks
from wampy.
@noisyboiler I just saw, you did it here #44. Did you reproduce the bug ?
from wampy.
yes! sorry, there is a bug in payload length with characters beyond standard ascii length.
from wampy.
this was a combination of issues
sys.getdefaultencoding()
beingascii
on our machines :(- flakey serialisation that can return different things based on the above and the python version
- giant bug in
__len__
implementation - random
decodes
that made things work forascii
but were not properly understood
from wampy.
fixed by #44
from wampy.
Related Issues (20)
- Error when transferring big, really big strings HOT 3
- wampy requires too old gevent package HOT 2
- Wrong arg for socket.connect() HOT 1
- wampy 'run' command broken HOT 2
- Doc : how to setup the URL in the config.json file of crossbar HOT 5
- Dependency issue: No module named tenacity HOT 2
- Example: Ticket authentication HOT 5
- Double slash in path HOT 3
- flask example HOT 7
- unale to run the example HOT 10
- Please, implement ping from client to Crossbar HOT 7
- Cannot receive result from RPC to autobahn callee HOT 3
- client can't connect to crossbar universal transport HOT 2
- feature request: expose session timeout to Client & caller HOT 13
- MonkeyPatchWarning HOT 3
- Please, do not use strict dependencies (==) in setup.py, it leads to conflicts with subdependencies of other libraries in the same project HOT 2
- wampy run command not working HOT 2
- Help With Coverage HOT 1
- Is there a file (like CHANGE.rst) or documentation where I can find what changed in each version (to decide if it is worth upgrading)? HOT 2
- Python 3.7 Support HOT 7
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 wampy.