get upload token failed: 401

在上传资源文件时,偶尔出现这个错误。

I 2021/09/11 12:28:05 assets.go:116: uploading [4] assets
E 2021/09/11 12:28:05 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:28:06 assets.go:131: upload assets failed: 401
E 2021/09/11 12:28:06 assets.go:131: upload assets failed: 401
E 2021/09/11 12:28:06 assets.go:131: upload assets failed: 401
E 2021/09/11 12:28:06 assets.go:131: upload assets failed: 401
I 2021/09/11 12:33:56 assets.go:116: uploading [4] assets
E 2021/09/11 12:33:56 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:33:57 assets.go:131: upload assets failed: 401
E 2021/09/11 12:33:57 assets.go:131: upload assets failed: 401
E 2021/09/11 12:33:57 assets.go:131: upload assets failed: 401
E 2021/09/11 12:33:57 assets.go:131: upload assets failed: 401
I 2021/09/11 12:34:32 assets.go:116: uploading [4] assets
E 2021/09/11 12:34:32 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:34:33 assets.go:131: upload assets failed: 401
E 2021/09/11 12:34:33 assets.go:131: upload assets failed: 401
E 2021/09/11 12:34:33 assets.go:131: upload assets failed: 401
E 2021/09/11 12:34:34 assets.go:131: upload assets failed: 401
I 2021/09/11 12:36:22 assets.go:116: uploading [4] assets
E 2021/09/11 12:36:22 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:36:22 assets.go:131: upload assets failed: 401
E 2021/09/11 12:36:23 assets.go:131: upload assets failed: 401
E 2021/09/11 12:36:24 assets.go:131: upload assets failed: 401
E 2021/09/11 12:36:24 assets.go:131: upload assets failed: 401
I 2021/09/11 12:36:35 assets.go:116: uploading [4] assets
E 2021/09/11 12:36:35 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:36:35 assets.go:131: upload assets failed: 401
E 2021/09/11 12:36:36 assets.go:131: upload assets failed: 401
E 2021/09/11 12:36:36 assets.go:131: upload assets failed: 401
E 2021/09/11 12:36:37 assets.go:131: upload assets failed: 401
I 2021/09/11 12:36:45 working.go:297: port [6806] is opened, try to check version of running kernel
I 2021/09/11 12:36:45 working.go:318: version of the running kernel is the same as this boot [1.3.4], exit this boot
I 2021/09/11 12:37:02 assets.go:116: uploading [4] assets
E 2021/09/11 12:37:02 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:37:02 assets.go:131: upload assets failed: 401
E 2021/09/11 12:37:03 assets.go:131: upload assets failed: 401
E 2021/09/11 12:37:03 assets.go:131: upload assets failed: 401
E 2021/09/11 12:37:03 assets.go:131: upload assets failed: 401
I 2021/09/11 12:37:09 assets.go:116: uploading [4] assets
E 2021/09/11 12:37:09 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:37:10 assets.go:131: upload assets failed: 401
E 2021/09/11 12:37:10 assets.go:131: upload assets failed: 401
E 2021/09/11 12:37:10 assets.go:131: upload assets failed: 401
E 2021/09/11 12:37:11 assets.go:131: upload assets failed: 401
I 2021/09/11 12:37:24 conf.go:281: exited kernel
I 2021/09/11 12:37:27 working.go:94: 
      ___                                   ___           ___           ___
     /  /\        ___           ___        /__/\         /  /\         /__/\
    /  /:/_      /  /\         /__/|       \  \:\       /  /::\        \  \:\
   /  /:/ /\    /  /:/        |  |:|        \  \:\     /  /:/\:\        \  \:\
  /  /:/ /::\  /__/::\        |  |:|    ___  \  \:\   /  /:/~/::\   _____\__\:\
 /__/:/ /:/\:\ \__\/\:\__   __|__|:|   /__/\  \__\:\ /__/:/ /:/\:\ /__/::::::::\
 \  \:\/:/~/:/    \  \:\/\ /__/::::\   \  \:\ /  /:/ \  \:\/:/__\/ \  \:\~~\~~\/
  \  \::/ /:/      \__\::/    ~\~~\:\   \  \:\  /:/   \  \::/       \  \:\  ~~~
   \__\/ /:/       /__/:/       \  \:\   \  \:\/:/     \  \:\        \  \:\
     /__/:/        \__\/         \__\/    \  \::/       \  \:\        \  \:\
     \__\/                                 \__\/         \__\/         \__\/
I 2021/09/11 12:37:27 runtime.go:32: kernel is booting:
    * ver [1.3.4]
    * arch [amd64]
    * runtime mode [prod]
    * working directory [/home/clouder/Applications/Siyuan/SiyuanKernel/resources]
    * read only [false]
    * container [std]
    * database [ver=20210818]
    * workspace directory [/home/clouder/MEGAsync/SiYuan]
    * rsync [version v3.2.3  protocol version 31]
I 2021/09/11 12:37:27 conf.go:228: local serve path [http://192.168.3.147:6806]
I 2021/09/11 12:37:27 database.go:124: initialized database tables
I 2021/09/11 12:37:27 database.go:84: reinitialized database [/home/clouder/MEGAsync/SiYuan/temp/siyuan.db]
I 2021/09/11 12:37:27 conf.go:403: pre-init database size [29 kB]
I 2021/09/11 12:37:27 serve.go:68: kernel HTTP server is booting [http://127.0.0.1:6806]
I 2021/09/11 12:37:31 box.go:422: rebuilt database of box [20210820232021-3cpy4a5] in [2.74s]
I 2021/09/11 12:37:34 box.go:422: rebuilt database of box [20210820232021-clpq1oe] in [2.75s]
I 2021/09/11 12:37:34 conf.go:415: post-init database size [46 MB]
I 2021/09/11 12:37:35 working.go:108: kernel booted
I 2021/09/11 12:38:07 assets.go:116: uploading [4] assets
E 2021/09/11 12:38:07 liandi.go:47: get upload token failed: 401
E 2021/09/11 12:38:07 assets.go:131: upload assets failed: 401
E 2021/09/11 12:38:08 assets.go:131: upload assets failed: 401
E 2021/09/11 12:38:08 assets.go:131: upload assets failed: 401
E 2021/09/11 12:38:08 assets.go:131: upload assets failed: 401
I 2021/09/11 12:38:44 assets.go:116: uploading [4] assets
I 2021/09/11 12:38:45 assets.go:138: uploaded asset [assets/image-20210905124629-3ndc12w.png]
I 2021/09/11 12:38:46 assets.go:138: uploaded asset [assets/image-20210905124709-wz2lub4.png]
I 2021/09/11 12:38:46 assets.go:138: uploaded asset [assets/image-20210904232404-q4trvfv.png]
I 2021/09/11 12:38:47 assets.go:138: uploaded asset [assets/image-20210904233349-7p7ixld.png]
I 2021/09/11 12:38:47 assets.go:143: uploaded [4] assets

在重启内核后依然存在。

退出账号,重新登陆后恢复正常。

广告 我要投放

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...