Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
How to get folder information from dropbox with vue

I have a vue application where I want to fetch every information of my account with the filesListFolder method but I am getting the following error:

TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
    at eval

Could someone explain to me what is wrong with my code? I did not really understand the error message. I have not selected the app folder option in dropbox generating my app but the full dropbox one.

Here is my code:

getImages() {
      require("isomorphic-fetch");
      const Dropbox = require("dropbox").Dropbox;
      const dbx = new Dropbox({
        accessToken: 'AcessToken',
        fetch
      });
      dbx.filesListFolder({ path: '' })
          .then(function(response) {
            console.log(response.entries);
          })
          .catch(function(error) {
            console.error(error);
          });
    },
  }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!