Wildric-Auric / MidJourney-Wrapper

MidJourney wrapper in Discord.
Creative Commons Zero v1.0 Universal
696 stars 149 forks source link

Unknown Integration Code 10005 #15

Closed BoredMind closed 1 year ago

BoredMind commented 1 year ago

Running the bot works but using slash commands returns this error. Any suggestions?

<Response [400]> {"message": "Unknown Integration", "code": 10005}

Wildric-Auric commented 1 year ago

Try updating pycord

BoredMind commented 1 year ago

I had to upgrade discord.py to 2.10 and downgrade py-cord to 2.0.0b1. py-cord was at 2.3.2 and it was causing other errors as well.

BoredMind commented 1 year ago

Never mind, it's still happening. Using py-cord 2.3.2 or py-cord-2.0.0b1. Both return that error. It worked 1 time at 2.0.0b1 but only once.

Using 2.0.0b1 I also see this error on start up:

discord.errors.HTTPException: 405 Method Not Allowed (error code: 0): 405: Method Not Allowed

I do not get it on 2.3.2

Wildric-Auric commented 1 year ago

I tried the bot today, and it seems that can't reproduce the error, everything works fine for me.

Wildric-Auric commented 1 year ago

Actually, you are still getting "Unknown Integration" right?

BoredMind commented 1 year ago

Correct, still see that in response.text output

BoredMind commented 1 year ago

Fixed the response.text error from the other issue #14 by manually changing it for now but still seeing unknown integration.

Wildric-Auric commented 1 year ago

ok I see, I never saw this error and discord API documentation does not help me with. Have double checked your account token, channel id and server id?

BoredMind commented 1 year ago

I have triple-checked the server/channel IDs and bot token, I blew away the repo and started fresh in a virtual environment for Python, and I've grabbed the user token from both Firefox and Chrome.

I tried using known bad user tokens as well and got this result:

python3 main.py
Logged in as Bot####
{"message": "401: Unauthorized", "code": 0}
401
Wildric-Auric commented 1 year ago

I searched many time about that error but could not find anything, sorry. Since I cannot reproduce it I would simply suggest to try on another account and another server. If that works I would not know why; it may involve something beyond the documentation...

Wildric-Auric commented 1 year ago

Sorry to ask that but is MidJourney bot in the server?

BoredMind commented 1 year ago

Sorry to ask that but is MidJourney bot in the server?

It is not in the server. I added it and now it works. I don't know how I missed this step. I guess I assumed the Discord bot that I created would relay everything from MJ. Wow, sorry about all this!

Wildric-Auric commented 1 year ago

Yeah I knew it by seeing that integration are bots among other stuff, unknown integration means that you were giving the bot id which he couldn't find in the server.

xucian commented 1 year ago

hello! I updated py-coord to 2.4.1 and I still get the issue (though I don't get a 405: Method Not Allowed error anymore).

in all cases, still getting:

{"message": "Unknown Integration", "code": 10005}
400
Dooy commented 1 year ago

hello! I updated py-coord to 2.4.1 and I still get the issue (though I don't get a 405: Method Not Allowed error anymore).

  • tried removing and re-adding the bot to the server, while also resetting its token.
  • tried setting it to both private and public (not ideal)
  • tried creating another bot

in all cases, still getting:

{"message": "Unknown Integration", "code": 10005}
400

SALAI_TOKEN = [Token of the Account from which you paid MidJourney ]

Have you ever paid for your Account?