Code Monkey home page Code Monkey logo

Comments (4)

htdvisser avatar htdvisser commented on September 22, 2024

It looks like the AppEUI/DevEUI combination is already taken by another device in this NetworkServer. That device seems to be registered in hivemind_dev_1, and you indeed don't have permission to update it.

from ttn.

Oliv4945 avatar Oliv4945 commented on September 22, 2024

Hi,

What is surprising is that I can register the device with same AppEui/DevEui in the console, but not the API

from ttn.

thezenox avatar thezenox commented on September 22, 2024

I am facing the same problem (using node.js, but don't matter). Tried generating different AppEuis and DevEuis, all with permission denied: No "devices" rights to Application "ttn-tools" -also not mine. register in web console works with same parameters.

BTW: why is this closed? No solution yet.
https://www.thethingsnetwork.org/forum/t/no-devices-rights-to-application/20383
https://www.thethingsnetwork.org/forum/t/failed-to-register-device-no-devices-right-to-application-xxx/28597/8

from ttn.

Remboooo avatar Remboooo commented on September 22, 2024

I was facing the same problem: could register the device just fine in the console, but got this error through the API. Using the console to change the handler for the application over from ttn-handler-eu to digitalcatapult-uk-handler fixed it for me.

EDIT: apparently digitalcatapult just does less error checking; the call I was doing ended up making devices with empty DevEUI, empty AppEUI, etc, because the JSON format I was supplying was incorrect. Make sure to use the spec in https://www.thethingsnetwork.org/docs/applications/python/api-reference.html#register_device . It seems that the documentation on pypi is outdated and specifies a different format. The JSON you have to supply is significantly different from the format you get back when requesting devices! E.g. you have to use devEui in stead of dev_eui and it is at the top level in stead of inside a lorawan_device field. Seems this error just occurs if you're supplying invalid JSON to the TTN handler.

from ttn.

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.