-
Download not complete with json file
when I want to download a json file of 4,7MB the response is empty. I tried with the SDK using dbx.filesDownload({ path: file }) and with a HTTP request on 'https://content.dropboxapi.com/2/files/download'. In Fiddler I get the message: [Fiddler] ReadResponse() failed: The server did not return a complete response for this…
-
i want to check is file exists with async/await
I tried this but it doesn't work: async function CheckIfFileExist(dbx, fileName) { let fentries = []; dbx.filesListFolder({ path: "" }) .then(async function (response) { fentries = await response.result.entries; if (fentries > 1) { for (let i = 0; i < fentries.length; i++) { if (fentries[i].name == fileName) { return true…
-
DropboxResponseError: Response failed with a 401 code
hello, I get an error 401 trying to connect to my dropbox, this is my code: let dbx = new Dropbox.Dropbox({ accessToken: "REDACTED", clientId: "REDACTED", clientSecret: "REDACTED" }); dbx.filesListFolder({ path: "" }) .then(function (response) { if (response.result.entries > 1) { return true } else { return false } })…
-
oauth fails in vs2022 in debug mode
oauth fails in Razor project when started in debug mode. When started without debugging everything is ok and I get my tokens. When the dropbox page is loaded the debug output window shows all kinds off js code and html, takes a long time and then stops working. this is the url I'm sending:…
-
cannot get list of files .NET
I think my code is simple: string token = "sl.<REDACTED>"; var dbx = new DropboxClient(token); var res = await dbx.Files.ListFolderAsync(path: ""); foreach (var entry in res.Entries) { Console.WriteLine(entry.Name); } if have no entries (Count=0) here. I have 4 folders and 1 file in in my dropbox folder.