Git Product home page Git Product logo

Comments (2)

choksi81 avatar choksi81 commented on August 12, 2024

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.

choksi81 avatar choksi81 commented on August 12, 2024

Author: justinc
This is obsolete. We are not using these advertisement methods anymore.

from advertiseserver.

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.