Skip to content

RequestClusterConfiguration in RemoteDatabase sends erroneous POST-request #820

Closed

Description

@gfinger

I am experimenting with the latest version of the ArcadeDB server and the RemoteDatabase from the main-branch. When I try to initialize a RemoteDatabase it requests the ClusterConfiguration sending a POST request to /api/v1/server with a JSON payload:

{
    "command": "server?mode=cluster",
    "serializer": "record"
}

This is an unknown server command and returns an error.

Shouldn't the server information be retrieved by using a GET to /api/v1/server?mode=cluster. At least this request returns an answer.

My server has the version: "23.1.2-SNAPSHOT (build d37c6de/1675248486829/main)"

Activity

  1. lvca commented on Feb 1, 2023

    @lvca
    Member

    I see in the code the request is a GET:

      private void requestClusterConfiguration() {
        try {
          serverCommand("GET", "server?mode=cluster", false, false, new Callback() {
  2. self-assigned this
    on Feb 1, 2023
  3. gfinger commented on Feb 1, 2023

    @gfinger
    ContributorAuthor

    yes, but when the payload gets set in "setRequestPayload" it changes the method to POST!

  4. lvca commented on Feb 1, 2023

    @lvca
    Member

    You're right! The request error was managed with a simple log. We need more test cases on this specific issue. This must have been the victim of my recent refactoring of a few days ago. The "server?mode=cluster is passed as payload instead of URL

  5. gfinger commented on Feb 1, 2023

    @gfinger
    ContributorAuthor

    yes. you are damn-fast fixing issues. this might lead to errors like this. if it is okay with you, I am going to write a test case when you fixed the issue.

  6. gfinger commented on Feb 1, 2023

    @gfinger
    ContributorAuthor

    just a personal question: are you working out of Italy or are you in the US?

  7. lvca commented on Feb 1, 2023

    @lvca
    Member

    @gfinger Thanks I appreciate you can help with test cases. The fix is already in the main branch. I work from the US, East Coast. You?

  8. added this to the 23.1.2 milestone on Feb 1, 2023
  9. gfinger commented on Feb 1, 2023

    @gfinger
    ContributorAuthor

    I am in Germany (near Walldorf / SAP). I am not active for SAP any longer, because I am in "Altersteilzeit", which gives me time for hobbies.

  10. lvca commented on Feb 1, 2023

    @lvca
    Member

    I'm pretty familiar with SAP :-) I'm glad you're working with ArcadeDB and helping with the community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions