log.txt 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Usage:
  2. Upload: python upload.py <file_path>
  3. Download: python upload.py download <url> <save_path>
  4. --- Running Self Test ---
  5. Uploading img_1_gen.png to aigc-crawler/crawler/image...
  6. Upload SDK Response: {'oss_object_key': 'crawler/image/img_1_gen.png', 'save_oss_timestamp': 1775658293920}
  7. Extracted URL: https://res.cybertogether.net/crawler/image/img_1_gen.png
  8. Downloading from https://res.cybertogether.net/crawler/image/img_1_gen.png to downloaded_dummy.png...
  9. python : Traceback (most recent
  10. call last):
  11. At line:1 char:31
  12. + ... tivate.ps1; python .\exampl
  13. es\production_restore\upload.py
  14. > log.txt ...
  15. + ~~~~~~~~~~~~~~~
  16. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17. ~~~~~~~~~
  18. + CategoryInfo : No
  19. tSpecified: (Traceback (most
  20. recent call last)::String)
  21. [], RemoteException
  22. + FullyQualifiedErrorId : Na
  23. tiveCommandError
  24. File "C:\Users\11304\gitlab\cyb
  25. ertogether\Agent\examples\product
  26. ion_restore\upload.py", line 70,
  27. in <module>
  28. asyncio.run(main())
  29. File "C:\Users\11304\AppData\Ro
  30. aming\uv\python\cpython-3.12.9-wi
  31. ndows-x86_64-none\Lib\asyncio\run
  32. ners.py", line 195, in run
  33. return runner.run(main)
  34. ^^^^^^^^^^^^^^^^
  35. File "C:\Users\11304\AppData\Ro
  36. aming\uv\python\cpython-3.12.9-wi
  37. ndows-x86_64-none\Lib\asyncio\run
  38. ners.py", line 118, in run
  39. return self._loop.run_until_c
  40. omplete(task)
  41. ^^^^^^^^^^^^^^^^^^^^^^
  42. ^^^^^^^^^^^^^
  43. File "C:\Users\11304\AppData\Ro
  44. aming\uv\python\cpython-3.12.9-wi
  45. ndows-x86_64-none\Lib\asyncio\bas
  46. e_events.py", line 691, in
  47. run_until_complete
  48. return future.result()
  49. ^^^^^^^^^^^^^^^
  50. File "C:\Users\11304\gitlab\cyb
  51. ertogether\Agent\examples\product
  52. ion_restore\upload.py", line 55,
  53. in main
  54. await download_image(url,
  55. download_path)
  56. File "C:\Users\11304\gitlab\cyb
  57. ertogether\Agent\examples\product
  58. ion_restore\upload.py", line 30,
  59. in download_image
  60. resp.raise_for_status()
  61. File "C:\Users\11304\gitlab\cyb
  62. ertogether\Agent\.venv\Lib\site-p
  63. ackages\httpx\_models.py", line
  64. 829, in raise_for_status
  65. raise
  66. HTTPStatusError(message,
  67. request=request, response=self)
  68. httpx.HTTPStatusError: Client
  69. error '404 Not Found' for url 'ht
  70. tps://res.cybertogether.net/crawl
  71. er/image/img_1_gen.png'
  72. For more information check: https
  73. ://developer.mozilla.org/en-US/do
  74. cs/Web/HTTP/Status/404