"go test -v -timeout 1h0m0s -remote TestBox: -verbose" - Starting (try 1/5) === RUN TestIntegration fstests.go:356: Using remote "TestBox:" 2020/08/16 05:28:22 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:22 DEBUG : TestBox: Token refresh failed try 1/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:23 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:24 DEBUG : TestBox: Token refresh failed try 2/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:25 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:25 DEBUG : TestBox: Token refresh failed try 3/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:26 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:27 DEBUG : TestBox: Token refresh failed try 4/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:28 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:28 DEBUG : TestBox: Token refresh failed try 5/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:29 DEBUG : box root 'rclone-test-zucebig1fehanub8xupodew1': Token expired but no uploads in progress - doing nothing 2020/08/16 05:28:29 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:29 DEBUG : TestBox: Token refresh failed try 1/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:30 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:31 DEBUG : TestBox: Token refresh failed try 2/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:32 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:32 DEBUG : TestBox: Token refresh failed try 3/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:33 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:34 DEBUG : TestBox: Token refresh failed try 4/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} 2020/08/16 05:28:35 DEBUG : TestBox: Loaded invalid token from config file - ignoring 2020/08/16 05:28:35 DEBUG : TestBox: Token refresh failed try 5/5: oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} fstests.go:380: Error Trace: fstests.go:380 box_test.go:13 Error: Received unexpected error: Get "https://api.box.com/2.0/folders/0/items?fields=type%2Cid%2Csequence_id%2Cetag%2Csha1%2Cname%2Csize%2Ccreated_at%2Cmodified_at%2Ccontent_created_at%2Ccontent_modified_at%2Citem_status%2Cshared_link&limit=1000&offset=0": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect TestBox:": oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} couldn't list files github.com/rclone/rclone/backend/box.(*Fs).listAll /home/rclone/go/src/github.com/rclone/rclone/backend/box/box.go:591 github.com/rclone/rclone/backend/box.(*Fs).readMetaDataForPath /home/rclone/go/src/github.com/rclone/rclone/backend/box/box.go:341 github.com/rclone/rclone/backend/box.(*Object).readMetaData /home/rclone/go/src/github.com/rclone/rclone/backend/box/box.go:1146 github.com/rclone/rclone/backend/box.(*Fs).newObjectWithInfo /home/rclone/go/src/github.com/rclone/rclone/backend/box/box.go:499 github.com/rclone/rclone/backend/box.NewFs /home/rclone/go/src/github.com/rclone/rclone/backend/box/box.go:458 github.com/rclone/rclone/fs.NewFs /home/rclone/go/src/github.com/rclone/rclone/fs/fs.go:1337 github.com/rclone/rclone/fstest/fstests.Run /home/rclone/go/src/github.com/rclone/rclone/fstest/fstests/fstests.go:375 github.com/rclone/rclone/backend/box_test.TestIntegration /home/rclone/go/src/github.com/rclone/rclone/backend/box/box_test.go:13 testing.tRunner /usr/local/go/src/testing/testing.go:1108 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374 Test: TestIntegration Messages: unexpected error: couldn't list files: Get "https://api.box.com/2.0/folders/0/items?fields=type%2Cid%2Csequence_id%2Cetag%2Csha1%2Cname%2Csize%2Ccreated_at%2Cmodified_at%2Ccontent_created_at%2Ccontent_modified_at%2Citem_status%2Cshared_link&limit=1000&offset=0": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect TestBox:": oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_grant","error_description":"Refresh token has expired"} --- FAIL: TestIntegration (14.65s) FAIL exit status 1 FAIL github.com/rclone/rclone/backend/box 14.662s "go test -v -timeout 1h0m0s -remote TestBox: -verbose" - Finished ERROR in 16.087355988s (try 1/5): exit status 1: Failed [TestIntegration]