Mikubill / cowtransfer-uploader

Simple Cowtransfer Uploader/Downloader in Golang
MIT License
436 stars 58 forks source link

Upload 出错 getSendConfig returns error: json: cannot unmarshal string into Go struct field prepareSendResp.error of type bool, onfile #65

Open duchenpaul opened 1 year ago

duchenpaul commented 1 year ago
$ ./cowtransfer-uploader --verbose  cowtransfer-uploader_0.4.23_linux_amd64.tar.gz
2022/11/23 12:02:35 config = &{token: parallel:3 interval:15 prefix:. debugMode:true singleMode:false version:false keepMode:false authCode: blockSize:1200000 hashCheck:false passCode: silentMode:false validDays:0}
2022/11/23 12:02:35 files = [cowtransfer-uploader_0.4.23_linux_amd64.tar.gz]
2022/11/23 12:02:35 retrying: 0
2022/11/23 12:02:35 postBody: map[totalSize:2623998 validDays:0]
2022/11/23 12:02:35 endpoint: https://cowtransfer.com/api/transfer/v2/preparesend
2022/11/23 12:02:35 map[Authorization:[] Content-Type:[multipart/form-data;boundary=9c0f4e7d4d0f2c6db6e2b3c4e7d85df1b1bb22de08a81413d9a3d7e8edc4] Cookie:[] Referer:[https://cowtransfer.com/]]
2022/11/23 12:02:35 returns: {"timestamp":1669176157146,"status":404,"error":"Not Found","message":"/transfer/v2/preparesend","path":"/transfer/v2/preparesend"}
2022/11/23 12:02:35 cookies set to: aliyungf_tc=cd6f68dfb677ac754caeeabc4c661ac6cc75fb4c4ae8392490e4fedc69f470a8;acw_tc=2f6fc11e16691761571017807e5dc78cf2fba93b934b4ef4b10bca60e015cd;
getSendConfig returns error: json: cannot unmarshal string into Go struct field prepareSendResp.error of type bool, onfile: cowtransfer-uploader_0.4.23_linux_amd64.tar.gz

$ ./cowtransfer-uploader --version                       ✔  chenny@uranus-ubuntu  12:02:35     

cowTransfer-uploader
Source: https://github.com/Mikubill/cowtransfer-uploader
Build: 2a8dbdd0308dd763d460c0a872e28fc2e7c1e4c6
GiggleLiu commented 1 year ago

I got the same error on Ubuntu 22.04.

tjc0726 commented 1 year ago

same on windows 11

jiajiaxd commented 1 year ago

same on windows 11

freeze-dolphin commented 1 year ago

same on linuxmint 21.2

Maxwell-codesome commented 10 months ago

same on Ubuntu 20.04.6 LTS

brightsm commented 8 months ago

win10 wsl Ubuntu tips error: getSendConfig returns error: json: cannot unmarshal string into Go struct field prepareSendResp.error of type bool, onfile: dd.txt

LuChuangKeJi commented 2 weeks ago

same on centos 7.9