George-iam / Midjourney_api

unofficial Midjourney API
MIT License
420 stars 76 forks source link

Problems with receiver.py #12

Closed matthias33890 closed 1 year ago

matthias33890 commented 1 year ago

Thank you first of all for this project. It is exactly what I need. I have following Problems:

  1. I can't find the authorization key in my payload. Is it needed?

  2. When I start receiver.py I get following error:

=========== listening started =========== Traceback (most recent call last): File "/Users/matthias/Library/receiver.py", line 133, in <module> receiver.main() File "/Users/matthias/Library/receiver.py", line 110, in main self.collecting_results() File "/Users/matthias/Library/receiver.py", line 49, in collecting_results if (message['author']['username'] == 'Midjourney Bot') and ('**' in message['content']): TypeError: string indices must be integers

I wasn't able to solve it.

I hope you can help me!

George-iam commented 1 year ago

Hi! Off course you need it, that's why you got this error. Take a look at all the instruction steps I provided.

matthias33890 commented 1 year ago

I followed your instructions. 93DE3F7D-8362-4C19-B0BA-9954A890C7AE_1_201_a

But in my payload I don't have the authorization key.

matthias33890 commented 1 year ago

I solved my problem, you can get the authorization key in the Headers of the https request.