Comments
-
Functions can normally can return a value that can be used outside of the function with the return keyword in the function (example in my code below). The issue is with async functions as they return promises and not variables (e.g. string, int, array). With your example using then I tried to define the array inside the…
-
The line you mentioned above does give the desired results when used within the then syntax. But when I try to use it outside the then syntax (a couple of lines further down) users_array is not defined. Get_Arrays_2().then((users_array) => console.log('Returned Users Array Global :', users_array, '\nUser1 Week1 Gm1 Pick…
-
I would you like to send you an attachment of the html code, but I don't see an option for that. There are 2400 lines of code. I could paste it in.
-
One more issue I am trying to resolve. As I mentioned previously I was able to download the file from dropbox and properly parse it into an array and access array elements within the async function I use to download the dropbox file. However I am having issues using the array outside of the async function…
-
Hi INeil. As I mentioned previously I was able to download the dropbox jason file and parse it into and array inside the async function shown below. However when I try to use it outside the async function it is either returned as undefined or a promise. Below are more detials. Load file from dropbox and parse the array.…
-
Thanks for pointing me in the right direction. I finally figured out that I was working with a string(text) representation of an array uploaded to dropbox as a json file. Once I realized that this is what I did to properly download the jason file and etablish the users_array containing football picks : Array Listing :…
-
the LoadFromDropbox returns the following : The LoadFromDropbox2 returns essentially the same
-
Hi DB-DEs My request is at the bottom with how to donwload a jason text file from my dropbox app to an array called users_array. Here is somebackground before the request at the bottom. With your assistance I was able to upload a stringified Jason file to my dropbox ap. Download function below : The uploaded jason file is…
-
I updated my download function as : I get a successful download, but I don't see the one line of football picks, just a blank array. The array is formatted correctly, but does not contain any information. I changed fileBinary to fileText. I'm not sure if I have to define that it is a json file.
-
thanks for your assistance. I updated both functions as you suggested : Still getting the same errors : The jason file that I have uploaded from my upload function looks like this : It is an array of football picks. So when I upload the files I used the JSON.stringify to save the array. When I open the jason file I see…
-
LoadFileFromDropbox error (other load function attempt)
-
When I updated my access token I received the message below : But when I looked in the dropbox folder in the app I did not see the file there., however it does appear in recents. Mabye there is a delay as I do see it in the folder a little later. I also notice that my access token expires after a day and I have to keep…
-
I tried your suggestion about error.error in the console. The 1st error description was an expired access token which I refreshed. The 2nd error description was to enable files.content.write, which I enabled. The 3rd error description (latest), shown below : The following are my app permissions :
-
Hello DB-Des Thanks for you response. I had included a screenshot as well as my function that uploads to dropbox in my initial post. I will provide them again, and try to include more detail. In my html console this is the error message I receive (screenshot below) : I have a function that is utilized once the user has…