Skip to content
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

Opening a project fails #2

Closed
dri94 opened this issue Mar 23, 2020 · 4 comments
Closed

Opening a project fails #2

dri94 opened this issue Mar 23, 2020 · 4 comments

Comments

@dri94
Copy link

dri94 commented Mar 23, 2020

When opening a project as specified in instructions, the following error is returned

go.Universe$proxyerror: metainfo error: rpccompat: dial tcp: lookup us-central-1.tardigrade.io: No address associated with hostname

The satellite address I am using is us-central-1.tardigrade.io:7777

My code is

    fun login(
        satelliteAddress: String,
        apiKey: String,
        encryptionAccess: String
    ): Result<Scope, Exception> {
        val key = ApiKey.parse(apiKey)
        return try {
            val project = Uplink().openProject(satelliteAddress, key)
            val saltedKey = Key.getSaltedKeyFromPassphrase(project, encryptionAccess)
            val access = EncryptionAccess(saltedKey)
            Success(Scope(satelliteAddress, key, access))
        } catch (ex: StorjException) {
            return Error(ex)
        }
    }
@kaloyan-raev
Copy link
Member

This error means that the us-central-1.tardigrade.io DNS name cannot be resolved on your device/emulator.

Make sure that your device/emulator is connected to Internet and that your app has the android.permission.INTERNET in the manifest.

@dri94
Copy link
Author

dri94 commented Mar 24, 2020

I feel really embarrassed by that mistake lol. However is there any way to get more human readable error messages? This will make it easier for devs to understand, and bubble up the info to users

@kaloyan-raev
Copy link
Member

Ideally, this should be an UnknownHostException, but we are not there yet in converting Golang errors to Java exceptions. We plan to have this in the future.

@dri94
Copy link
Author

dri94 commented Mar 24, 2020

I still currently get an io.storj.StorjException: go.Universe$proxyerror: metainfo error: rpccompat: dial tcp 35.184.17.243:7777: socket: operation not permitted when trying to perform this code.. This only exists on emulator so nonblocking. Would like to find a resolve in this thread for informational purposes, however I am closing this thread as its really nonessential.

@dri94 dri94 closed this as completed Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants