Why am I getting this error

08-24 17:30:29.440 30539-30539/es.vyb.vybes E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to register user. User already exists.
at com.backendless.async.callback.BackendlessCallback.handleFault(BackendlessCallback.java:28)
at com.backendless.UserService$1.handleFault(UserService.java:116)
at com.backendless.async.message.AsyncMessage$FaultHandler.handle(AsyncMessage.java:83)
at com.backendless.async.message.AsyncMessage.handleCallback(AsyncMessage.java:41)
at com.backendless.core.AndroidCarrier$1.handleMessage(AndroidCarrier.java:37)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5279)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
08-24 17:30:29.530 30539-8033/es.vyb.vybes E/Volley: [6585] BasicNetwork.performRequest: Unexpected response code 400 for https://api.backendless.com/8f2721cf-c7fc-b3c9-fffd-d8b3481d4c00/v1/files//profile_pic/profile_pic.jpg

I really need help solving this case , Please ,
Thanks a lot

There are two errors in the message:

    java.lang.RuntimeException: Unable to register user. User already exists. Unexpected response code 400 for <URL>
Which one are you inquiring about?

Mark

How can I solve both ? I am new to this so please if you can help me I would be more than grateful :smiley:

The first one is self explanatory - the user you’re trying to register already exists. Delete the user first if you need to re-register.

The second one indicates that the file does not exist.

The API path is correct or code the API path be the problem , And I’m really sorry but I’m trying my best to learn new stuff :smiley:

Do you think code generator can do the trick for sending files to my database at backendless with the chat things?

Thanks

The path for the file is not correct. If you take a look at the “Files” section in Backendless console, you will see that you do not even have the “profile_pic” directory.

Sorry, I do not understand the question. You’re mixing multiple concepts in the same sentence that I’m struggling to sift through (sending files, database and chat)…

If I use code generator tool in backendless , Am I able to send and receive data of all types from files to photos to chat to everything through the classes generated?

The generated classes can be used to create data objects. An object then becomes a record in the database. An object is not a file, it is not a photo. Those (files and photos) would need to be uploaded using the File Service API into the File Service. Data objects are saved using the Data Service API. These are different concepts.

E/Volley: [12363] BasicNetwork.performRequest: Unexpected response code 400 for https://api.backendless.com/8f2721cf-c7fc-b3c9-fffd-d8b3481d4c00/v1/files/null

Can you please give me a path that I can work with just so that I can try it?

Can you please give me a path that I can work with just so that I can try it?

A path that does what?

A path where I can set my picture

Thanks,

You can either upload a file or download a file. What do you mean by “set my picture” ?

A user needs to upload his photo to backendless but we need to download it once again to display it for him!

Thanks

File upload API: https://backendless.com/documentation/files/android/files_file_upload.htm

Response for the upload method contains the URL for the uploaded file. You can use the URL to download the file.

Could you please help with this error why am I getting it?

08-26 02:36:08.676 17861-17933/es.vyb.vybes E/Volley: [20036] BasicNetwork.performRequest: Unexpected response code 400 for https://api.backendless.com/8f2721cf-c7fc-b3c9-fffd-d8b3481d4c00/v1/files/5B83CCB0-A2DC-4C2D-FFC0-425E2DE34700/eyvgoxupqikmzjwkdztkbkcnlrwkqhzzyphvnull

https://api.backendless.com/8f2721cf-c7fc-b3c9-fffd-d8b3481d4c00/v1/main/files/Android Everything crashes and I wanna save and retrieve data from any folders of my folders

Are you trying to upload or download a file?

Both , Please just give me any to try on so that I can know how to do it!