-
Notifications
You must be signed in to change notification settings - Fork 17
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
File Not Found when browsing to file url #8
Comments
Hey, do you have some sample code? I just tried the whole flow again (just to be sure) and the following works just fine for me.
Would be helpful if you had an error - it's most likely to show up in parse-server. |
Thanks for the followup @felixrieseberg, I appreciate you taking the time to respond with some sample code. I will setup a test project on my end and run through your code as well. I'm not getting any error in parse-server with my setup. In my scenario I am running on localhost while using the parse-dashboard to upload files and attempting to access files via the file url. I only get 'File not found' response when I try to browse to the file url with When I change to Here is how I have the server configured in code. I have environment variables set in my dev machine for my Azure storage account.
|
Hm, I'm not sure about this one. Does it work fine with other file providers? I'm wondering what exactly might be happening here, since I'm not sure myself. |
I have done some more testing using the example code you provided in your first response and here is what I have found.
Then I created a new parse-server project from the parse example. I re-ran your example code against this new parse-server. I got the same results. Here is the full code of my new parse-server.
Is there anything else you could suggest to try? Thanks! |
+1 |
You need to set your publicServerUrl in index.js.
If this doesn't fix it it might be an Azure related issue. |
@majidhassan I tested this in my scenario but it did not solve the problem. publicServerURL appears to be used for the email adapter. I found this in the README.md regarding publicServerURL.
|
@thewizster it is only mentioned under the email adapter indeed, but is actually also used for the files url. But if you already tried that, then it might be an Azure issue. |
@majidhassan Thanks for the clarification. I am going to leave publicServerURL in my config. |
exactly the same issue |
Here is hint for the bug : |
I'm having the same issue, is there a solution? One thing I've noticed, which may have nothing to do with the issue, is in the server configuration output, the storage name is always undefined:
Even though I have the following in my configuration setup:
|
I have configured azure storage on my local dev parse-server. I have success when saving/uploading files via the parse-dashboard.
But, while I have
directAccess: false
I get a responseFile not found
from my parse-server.The file url from the parse-dashboard is:
http://localhost:1337/parse/files/myAppId/welcome.jpg
When I set
directAccess: true
my file is downloaded successfully direct from azure storage.The file url from the parse-dashboard is (account and container names changed):
https://storageaccount.blob.core.windows.net/container/welcome.jpg
parse-server: 2.2.10
parse-server-azure-storage: 1.0.4
parse-dashboard: 1.0.12
Thanks in advance for your assistance.
The text was updated successfully, but these errors were encountered: