Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at ApiError #267

Open
denyncrawford opened this issue Jan 4, 2019 · 2 comments
Open

Error at ApiError #267

denyncrawford opened this issue Jan 4, 2019 · 2 comments

Comments

@denyncrawford
Copy link

denyncrawford commented Jan 4, 2019

Hi! I was doing a test on a basic Node/express app just to see how it works and instantly it threw me an error:

C:\folder\to\app\index.js:12 throw e; ^ Error at new ApiError (C:\folder\to\app\node_modules\browserfs\dist\browserfs.js:5430:22) at finish (C:\folder\to\app\node_modules\browserfs\dist\browserfs.js:20369:20) at getFileSystem (C:\folder\to\app\node_modules\browserfs\dist\browserfs.js:20405:9) at Object.configure (C:\folder\to\app\node_modules\browserfs\dist\browserfs.js:20341:5) at Object.<anonymous> (C:\folder\to\app\index.js:5:11) at Module._compile (internal/modules/cjs/loader.js:722:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3)

I'm missconfigurating something, maybe? This is my app:

var Dropbox = require('dropbox').Dropbox;
var fetch = require('isomorphic-fetch');
var client = new Dropbox({ accessToken: 'CensoredAccesKeyADSFsGagSG52FdGd', fetch:fetch});
var BrowserFS = require('browserfs');
BrowserFS.configure({
	fs: "DropboxV2",
	options: {
		client: client
	}
}, function(e) {
	if (e) {
		throw e;
	}
});
var fs = BrowserFS.BFSRequire('fs');
const express = require(express);
const app = express();

app.get("/", function(req, res){
	res.send("Hi! Not even using BrowserFS")
});

app.listen(3000);
@jvilk
Copy link
Owner

jvilk commented May 29, 2019

Hey there! Can you console.log the error and show me what it contains? As-is, I can't tell what the problem is.

@dr-vortex
Copy link
Collaborator

Closing (stale). If you would like to reopen this issue, please do so by creating a new issue in the relevant repositories of @browser-fs

@dr-vortex dr-vortex closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
Repository owner locked and limited conversation to collaborators Oct 25, 2023
@dr-vortex dr-vortex reopened this May 17, 2024
Repository owner unlocked this conversation May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants