SDK keeps getting HTTP404 when PUTting avatar thumbnail to server
complete
w
wzhqwq
VRChat SDK Version: Avatar 3.6.1
Unity Version: 2022.3.22f1
Description of the bug:
Every time I'm trying to upload my avatar (either new or published), it fails halfway.
After examining full API logs and codes, I found that the SDK could upload the avatar bundle (.vrca) without an error, but after it acquires upload URL (like https://vrchat.com/api/1/file/image/code/{id}) and trys to "PUT" the thumbnail to the URL, it gets 404 and fails.
Steps to reproduce (how did you encounter the bug?):
Just fill in the form and click "Build & Publish" button.
Additionaly, I'm a Chinese user and I've tried uploading without VPN or through VPN to another region but failed.
Any extra files? (output logs, screenshots):
Yes, I've attached log output from one single uploading phase.
Log In
Fax
complete
Glad you could fix it!
Fax
needs more information
Hi! Is it possible that these issues are related to your internet connection? It's possible that these issues are related to your Chinese ISP.
w
wzhqwq
FaxYes, I think I might be under DNS poisoning and now this problem is fixed. Thanks for your attention.
w
wzhqwq
I finally note that the domain resolving for "vrchat.com" is having problem in China, even if you're using Google DNS. For VRC, it's expected to be resolved to two cloudflare ip (104.18.7.156, 104.18.6.156). But only in China (why?), it's resolved to some non-cloudflare ip randomly, causing the final upload step to fail. It was fixed by adding this two lines to hosts file.
104.18.7.156 vrchat.com
104.18.6.156 vrchat.com