| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- Usage:
- Upload: python upload.py <file_path>
- Download: python upload.py download <url> <save_path>
- --- Running Self Test ---
- Uploading img_1_gen.png to aigc-crawler/crawler/image...
- Upload SDK Response: {'oss_object_key': 'crawler/image/img_1_gen.png', 'save_oss_timestamp': 1775658293920}
- Extracted URL: https://res.cybertogether.net/crawler/image/img_1_gen.png
- Downloading from https://res.cybertogether.net/crawler/image/img_1_gen.png to downloaded_dummy.png...
- python : Traceback (most recent
- call last):
- At line:1 char:31
- + ... tivate.ps1; python .\exampl
- es\production_restore\upload.py
- > log.txt ...
- + ~~~~~~~~~~~~~~~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~~~~~~~~~
- + CategoryInfo : No
- tSpecified: (Traceback (most
- recent call last)::String)
- [], RemoteException
- + FullyQualifiedErrorId : Na
- tiveCommandError
-
- File "C:\Users\11304\gitlab\cyb
- ertogether\Agent\examples\product
- ion_restore\upload.py", line 70,
- in <module>
- asyncio.run(main())
- File "C:\Users\11304\AppData\Ro
- aming\uv\python\cpython-3.12.9-wi
- ndows-x86_64-none\Lib\asyncio\run
- ners.py", line 195, in run
- return runner.run(main)
- ^^^^^^^^^^^^^^^^
- File "C:\Users\11304\AppData\Ro
- aming\uv\python\cpython-3.12.9-wi
- ndows-x86_64-none\Lib\asyncio\run
- ners.py", line 118, in run
- return self._loop.run_until_c
- omplete(task)
- ^^^^^^^^^^^^^^^^^^^^^^
- ^^^^^^^^^^^^^
- File "C:\Users\11304\AppData\Ro
- aming\uv\python\cpython-3.12.9-wi
- ndows-x86_64-none\Lib\asyncio\bas
- e_events.py", line 691, in
- run_until_complete
- return future.result()
- ^^^^^^^^^^^^^^^
- File "C:\Users\11304\gitlab\cyb
- ertogether\Agent\examples\product
- ion_restore\upload.py", line 55,
- in main
- await download_image(url,
- download_path)
- File "C:\Users\11304\gitlab\cyb
- ertogether\Agent\examples\product
- ion_restore\upload.py", line 30,
- in download_image
- resp.raise_for_status()
- File "C:\Users\11304\gitlab\cyb
- ertogether\Agent\.venv\Lib\site-p
- ackages\httpx\_models.py", line
- 829, in raise_for_status
- raise
- HTTPStatusError(message,
- request=request, response=self)
- httpx.HTTPStatusError: Client
- error '404 Not Found' for url 'ht
- tps://res.cybertogether.net/crawl
- er/image/img_1_gen.png'
- For more information check: https
- ://developer.mozilla.org/en-US/do
- cs/Web/HTTP/Status/404
|