Issue on publish package - Agents

Hi @Allan_Zimmermann,
I was following the tutorial about agents and I successfully publish a python package on openflow.
But when I iniciate a secound python package and try to publish it, there is an error displayed but “OpenIAP Assistent (Extension)”:

E11000 duplicate key error collection: openflow.agents index: unique_slug_1 dup key: { slug: null }

Can you assist me? If you need more info please let me know.

there is something “wrong” with your package.json … it should not have any “slug” property … those are only used for agents, not pakages.

never mind, I’m wrong, i see now.
There is an error in the unique_slug_1 index. It should have a filter that limits it to {“_tyoe”: “agent”}

Can you delete that ?

This is my package.json file content:

    "name": "RpaChallenge",
    "version": "0.0.1",
    "description": "First steps into agents, let's gooooooooooo",
    "main": "",
    "openiap": {
        "daemon": false,
        "chromium": false,
        "language": "python",
        "typescript": false


Sorry but, where and what i need to delete?

Connect to mongodb

docker compose exec mongodb mongosh

change to the openflow database and then drop the index

use openflow
db.agents.dropIndex( "unique_slug_1" )


Thank you! This solution works perfectly and now was able to publish the package.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.