× Unhandled Rejection (DoesNotExist): getFile file.json failed. #1069
Unanswered
ladjalkhalil
asked this question in
Q&A
Replies: 1 comment
-
Hi — Is this still an active problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
i have a problem i wish i can get any help here
i making an app on stacks with react everything works fine until i try to change the name of the file in functions (putFile) and (getFile) putFile works fien but getFiles tells me that the file does not exists or it could not be found . .. this is the function i'm using to get file and store it's content in state array:
async fetchData() {
let fileName = 'message.json'
const options = { decrypt: true };
storage.getFile(fileName, options);
let messages = JSON.parse(fileName || "[]");
this.setState({
messages,
user: new Person(this.props.userSession.loadUserData().profile)
});
}
Beta Was this translation helpful? Give feedback.
All reactions