parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.94k stars 4.78k forks source link

files are not being stored in Parse server #6820

Closed chakravarthi-v closed 4 years ago

chakravarthi-v commented 4 years ago

I have created a Parse server , Where I am trying to upload image through android. I have successfully uploaded the image in parse server(As far as it shows the uploaded). But when I click to download the image from the parse dashboard.It shows connection refused, And when I try to extract the image In my android(That is through Android). The logs shows the same connection refused Then I have manually uploaded a image in parse server(As .PNG file), even then when I try to download the image it shows connection refused other thing work fine..like username.etc **I have searched the complete stack overflow regarding it my logs in android studio , while fetching the `image

2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: Caused by: java.net.ConnectException: failed to connect to /127.0.0.1 (port 1337) from /127.0.0.1 (port 41676) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:288) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:193) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:135) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at java.net.Socket.connect(Socket.java:621) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:73) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:246) 2020-07-22 10:28:13.084 29699-29699/com.example.instagram W/System.err: ... 32 more 2020-07-22 10:28:13.085 29699-29699/com.example.instagram W/System.err: Caused by: android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused) 2020-07-22 10:28:13.085 29699-29699/com.example.instagram W/System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:275) 2020-07-22 10:28:13.085 29699-29699/com.example.instagram W/System.err: ... 42 more 2020-07-22 10:28:13.098 29699-29699/com.example.instagram I/Toast: Show toast from OpPackageName:com.example.instagram, PackageName:com.example.instagram

mtrezza commented 4 years ago

You can check the URL that you are trying to open and try to reach it via a web browser. You may want to take a look at the Parse Server logs and the logs of your network chain in general to see whether requests reach the server at all. You may want to look at the Parse Server docs for file adapters. You may want to look into whether the files are indeed stored where you expect them to be stored.

I'm closing this as it does not seem to be a Parse Server issue.

Here are some resources you can try:

Feel free to comment if you have any questions and we can re-open this issue.

chakravarthi-v commented 4 years ago

@mtrezza thank you for your reply I have checked each and everything once again and there were no logs showing error regarding failure of uploading of Image I have tried the same thing creating a new browser subclass, but it hadn't worked still I couldn't download the updated image(it shows cannot connect or connection refused) this is the download link http://127.0.0.1:1337/parse/files/myappID/f18457154b524453f5998621e18ccb7b_agera.jpg hope I get reply

mtrezza commented 4 years ago

I still doesn't seem to be an issue with Parse Server. I suggest you post on one of the externals sites I listed in my previous comment.