Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 upload and describe pair does not work #115

Open
3 tasks done
tevfikaktay opened this issue Oct 18, 2024 · 1 comment
Open
3 tasks done

🐛 upload and describe pair does not work #115

tevfikaktay opened this issue Oct 18, 2024 · 1 comment

Comments

@tevfikaktay
Copy link

tevfikaktay commented Oct 18, 2024

问题简述

Trying to run "describe" feature in this project but it could not work with curl command as provided and also provided API url. Is there any one who can get results using upload and describe pairs. What is the problem? That did not return the describe results.

On the other hand, I tried it in provided API url, could not work. Tried the describe method on the discord server directly, that works.

复现方式

starting server.py and task_bot.py in two terminal. On the third one; first writing

tevfikaktay@Tevfik-MacBook-Pro midjourney-api % curl -X 'POST'
'http://127.0.0.1:8062/v1/api/trigger/upload' \ -H 'accept: application/json'
-H 'Content-Type: multipart/form-data'
-F 'file=@/Users/tevfikaktay/Desktop/Projects/midjourney-api/midjourney-api/results/20241018165753/char_sub_img_4.png;type=image/jpeg'

That returns;

{"message":"success","upload_filename":"d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg","upload_url":"https://discord-attachments-uploads-prd.storage.googleapis.com/d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg?upload_id=AHmUCY09mYwcaY8kZXHeOdp5Sdi2xxKgdl9_YCd_ptiZBNuv-T9hEKIcSwk7ri09b42K-oiWcl2MrhF8EV1fhZK_-gU9AUs6D605zCmk8rHjaJUt1Q","trigger_id":"917224701"}curl: (3) URL using bad/illegal format or missing URL

After that; servery.py terminal returns a message like binaries or somethingl ike that of the provided image;
\xd3\xbe\xb7\x87O\xd12\xdc\x98\xda\xe9~]M\xa4\xaa\xf6\xe6\xad\xda\xef\x9d\xff\xf67\xf2\xe4,f\tYL]\xecW\xc3\xc3(\xaeoo\x1e\xb6'\xc7\xe2pTD\xd3\xe0iR\x1f\xfb\x93\xc5\xe5f1\xf6K?\xf7\xd5l6v\x1b\x8a\x02c\x1e\xce\xcf\xa7\x07uh< \xd7\x90\xc1{E\x8aZ<uB"d\nfhH\x86\xaaf1s\x1c}\xc5\x15T\t\x18\xd0\x1b\x08\x03:\xe0`\xda0\x04\xc5\xef\xae"\x80\x07\x1f\x00B=\xdfs*\x14\xbb8\xe4\xb4\xce\xe0\xdb\xf9\xf1I\x0b\x94!\xa7~-}\x84>B2\xd8\x9f\xef\xdd\xbf\xe7\xf6g\x976\x10d\xaf\x98\xa1\x82\xdd\xb4\xa5\xad\x1e\xa10\

Then run this on the upload curl command terminal;

(base) tevfikaktay@Tevfik-MacBook-Pro midjourney-api % curl -X 'POST'
'http://127.0.0.1:8062/v1/api/trigger/describe'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"upload_filename": "d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg",
"trigger_id": "917224701"
}'

After that it returns below message in the same terminal,
{"message":"success","trigger_id":"917224701","trigger_type":"describe"}

on the server.py terminal side, it return

Fetch: https://discord.com/api/v9/interactions, {'data': '{"type": 2, "application_id": "936929561302675456", "guild_id": "1296864208411168778", "channel_id": "(my channel id)", "session_id": "cb06f61453064c0983f2adae2a88c223", "data": {"version": "1237876415471554623", "id": "1092492867185950852", "name": "describe", "type": 1, "options": [{"type": 11, "name": "image", "value": 0}], "attachments": [{"id": "0", "filename": "917224701.jpg", "uploaded_filename": "d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg"}]}}', 'proxy': ''}

环境信息

  • OS:
    ProductName: macOS
    ProductVersion: 14.5
    BuildVersion: 23F79
  • Python: 3.8.8 (python --version)
  • Others: No

额外信息

No response

一点点的自我检查

  • 充分阅读 README.md,特别是与本 issue 相关的部分
  • 如果是网络问题,已经检查网络连接、设置是否正常,并经过充分测试认为这是项目本身的问题
  • 本 issue 在 issues 中并没有重复问题
@tevfikaktay
Copy link
Author

tevfikaktay commented Nov 21, 2024

Is there any one who help for this problem? or someone get describe message properly? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant