Hello Moraliss.. i am getting error while tryin to post and upload file to database...i am using expo web sdk

`in my console i can  get the URI and base64  like below; but once i try to post it to my database i will be having error....
CONSOLE.LOG
{cancelled: false, uri: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdwAā€¦Z5pKuXQ6FSqnGhOvLZsj/D3iUPr79858EAAAAAElFTkSuQmCC', width: 476, height: 603}
NewTweetScreen.tsx:68 function (data) {
                return data.uri;
              }
NewTweetScreen.tsx:71 data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdwAAAJbCAYAAABO/iUIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhe7J11nN3G9bcTO8xtmpTSNNQwO8ycODEzxjHsmpmZac2wZlzjrpmZ7bXXEGyLu/rblf57pY/f/6F7nezTJ3SIAXjRklxMe7ZjpWKUt9pynWcUpBw66oh3TFSX4NxlD31tf8cwrXizSRc8lVLF+yPcEE+0g1lCiBbEFtHWhxyyNFyzNEnycUXXSVPPvGClJVWu3ttX/75b/Kvf/sP+ff/
dispatch @ RESTController.js:302
setTimeout (async)
xhr.onreadystatechange @ RESTController.js:221
XMLHttpRequest.send (async)
dispatch @ RESTController.js:302
setTimeout (async)
xhr.onreadystatechange @ RESTController.js:221
XMLHttpRequest.send (async)
dispatch @ RESTController.js:302
setTimeout (async)
xhr.onreadystatechange @ RESTController.js:221
XMLHttpRequest.send (async)
dispatch @ RESTController.js:302
setTimeout (async)
xhr.onreadystatechange @ RESTController.js:221
XMLHttpRequest.send (async)
dispatch @ RESTController.js:302
ajax @ RESTController.js:309
(anonymous) @ RESTController.js:416
Promise.then (async)
request @ RESTController.js:410
saveBase64 @ ParseFileController.default.js:171
value @ ParseFile.js:435
value @ ParseFile.js:455
saveData$ @ NewTweetScreen.tsx:81
tryCatch @ runtime.js:63
invoke @ runtime.js:294
(anonymous) @ runtime.js:119
tryCatch @ runtime.js:63
invoke @ runtime.js:155
(anonymous) @ runtime.js:190
callInvokeWithMethodAndArg @ runtime.js:189
enqueue @ runtime.js:212
(anonymous) @ runtime.js:119
./node_modules/regenerator-runtime/runtime.js.exports.async @ runtime.js:239
saveData @ NewTweetScreen.tsx:81
onClick @ PressResponder.js:333
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:4070
executeDispatch @ react-dom.development.js:8243
processDispatchQueueItemsInOrder @ react-dom.development.js:8275
processDispatchQueue @ react-dom.development.js:8288
dispatchEventsForPlugins @ react-dom.development.js:8299
(anonymous) @ react-dom.development.js:8508
batchedEventUpdates$1 @ react-dom.development.js:22396
batchedEventUpdates @ react-dom.development.js:3745
dispatchEventForPluginEventSystem @ react-dom.development.js:8507
attemptToDispatchEvent @ react-dom.development.js:6005
dispatchEvent @ react-dom.development.js:5924
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
discreteUpdates$1 @ react-dom.development.js:22413
discreteUpdates @ react-dom.development.js:3756
dispatchDiscreteEvent @ react-dom.development.js:5889
Show 17 more frames
RESTController.js:445 Uncaught (in promise) Error: XMLHttpRequest failed: "Unable to connect to the Parse API"
    at handleError (RESTController.js:445:1)

it looks like server url and app id were not set, or if there is a VPN blocking the connection to the server

can you test other functionalities like running a cloud function to see if it works?

@cryptokid everything is set upā€¦ i have already authenticate with email and password and i have also connected to metamask through wallect connectā€¦this is only happening once i try to send a post request

can you test it on your local browser?

in that case, can you look in the network tab to see what happened, like where it tried to connect to

Unable to connect to the Parse API

`RESTController.js:445 Uncaught (in promise) Error: XMLHttpRequest failed: ā€œUnable to connect to the Parse APIā€
at handleError (RESTController.js:445:1)
Promise.then (async)
./node_modules/regenerator-runtime/runtime.js.exports.async @ runtime.js:239
saveData @ NewTweetScreen.tsx:81
onClick @ PressResponder.js:333
callCallback @ react-dom.development.js:3945


      const  saveData = async () => {
       // const data =  Object.keys(meme).map((data) => data)
       const data =  meme ||[].map((data) => data)
       // const fileName=Object.create(data).map((res) => res.fileName)
      //  const fileName = encodeURI(data.map((res) => res.fileName));
      const fileName= encodeURI(data ||[].map((res) => res.fileName));
        const media = new Moralis.File(fileName, { base64: String(memBase64) });
        await media.saveIPFS();
    
        save({
          'createdById': currentUserId,
          'caption': memeTitle,
          'assetUrl': (media as any)._ipfs
        });
        navigation.goBack();
      }
    

that is what i am trying to do
````const [meme, setMeme]= React.useState (null);`

Does that server work? Can you do other things without problems?

i can do other things without problem boss...


usually you get this error when the server url and app id were not set or when something blocks the connection to the server, like a VPN