FusionAuth / fusionauth-java-client

Java 8 client library for FusionAuth
https://fusionauth.io
Apache License 2.0
12 stars 5 forks source link

Getting socket failed: EACCES (Permission denied) #1

Closed ChakshuGautam closed 5 years ago

ChakshuGautam commented 5 years ago

I have created a test server to check how things are. I have created an Applications, added a user manually, registered application to user, and created a password using the link given in email.

        String apiKey = "xxx";
        FusionAuthClient client = new FusionAuthClient(apiKey, "http://142.93.213.217:9011");
        final UUID applicationId = UUID.fromString("yyyy");

        LoginRequest request = new LoginRequest(applicationId, "chaks.gautam@gmail.com", "zzzzxxxxss");
        ClientResponse<LoginResponse, Errors> result = client.login(request);
        if (!result.wasSuccessful()) {
            Log.e(TAG, "Could not Authenticate");
        }else{
            Log.d(TAG, "Logged in Successfully");
        }

But I am still not able to login the user. Am I missing anything? It seems like the apiKey is wrong and hence I am unable to connect to the server. I am able to get the user using Node client API on the server side so I guess the setup of FusionAuth is correct. The error does not elaborate where I am wrong in the above steps and hence I am unable to debug.

I am able to use the login API in Postman.

ChakshuGautam commented 5 years ago

Sorry noob issue. The internet permissions were not there in Manifest.