Comments (2)
Author: monzum
I took a look at this and tried to write up a test to check this out. I tested it with the big dictionary you provided and it does fail and I tried it with couple of small dictionaries as keys and I also got failure in some cases. Here are the results:
dict: {1 : '2'}
DOR => [=> [](]
opendht)
central => [received when announcing:
Traceback (most recent call last):
File "test_large_key_advertise.py", line 19, in main
File "/home/monzum/test_advertise_two_keys/advertise_repy.py", line 168, in advertise_announce
AdvertiseError: ['announce error (type: DOR): ord() expected string of length 1, but int found']('123']
Error)
dict: {1 : 2}
DOR => [=> [](]
opendht)
central => [received when announcing:
Traceback (most recent call last):
File "test_large_key_advertise.py", line 19, in main
File "/home/monzum/test_advertise_two_keys/advertise_repy.py", line 168, in advertise_announce
AdvertiseError: ['announce error (type: DOR): ord() expected string of length 1, but int found']('123']
Error)
dict: {'1' : 2}
DOR => [=> []('123']
opendht)
central => [received when announcing:
No error received while announcing
dict: str({1 : '2'})
DOR => ['123']('123']
Error)
opendht => [=> ['123'](]
central)
Error received when announcing:
No error received while announcing
The opendht lookup returned an empty list every time and didn't return with any exceptions. This might have been due to just normal failures. However it seems that the DOR advertisement fails to announce when advertising a dictionary where the key of the dictionary is an integer. When I announced the big dictionary, I got the same error while advertising and although I haven't confirmed it yet, it seems the announce/lookup failed for the big dictionary because all the keys were not string. Is this a bug in the DOR advertisement? Or is there supposed to be a certain format that the keys for announcing need to follow?
from advertiseserver.
Author: justinc
This is obsolete. We are not using these advertisement methods anymore.
from advertiseserver.
Related Issues (20)
- There seems to be a small bug dealing with openDHTadvertise.repy HOT 5
- Advertising two keys (in two threads) results in high failure rate HOT 2
- Bug in current advertiseserver HOT 2
- DORadvertise seems to have a bug in it HOT 3
- Advertise bug caused by , and \ encoding HOT 1
- Many nodes have hard time advertising. HOT 1
- Problem with advertise service - Error when using announce HOT 2
- httpretrieve.repy possibly leaks sockets. HOT 1
- Deprecate old advertise server format... HOT 3
- Unexpected tag 'details' raises exception during advertise lookup HOT 2
- Centralized advertise v2 is slow HOT 7
- Centralized advertise v2 to contact multiple v2 servers HOT 7
- [Newcomer] Integration test for advertise servers HOT 5
- Dwindling node counts since 0.1.1d push HOT 6
- Advertise service sometimes returns empty list HOT 4
- [Newcomer| Evaluate advertise monitoring logs HOT 2
- Port advertise servers to RepyV2 HOT 4
- Clean up repo HOT 3
- advertiseserver.py needs include RepyV2 files through dylink HOT 3
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 advertiseserver.