Skip to content

Failed to log user in: no token #9

@mainstringargs

Description

@mainstringargs

When I try to login using this simple code:

	public static void main(String[] args) {
		
		RobinhoodApi api = null;
		try {
			api = new RobinhoodApi(<USER>,<PASSWORD>);
		} catch (RobinhoodApiException e) {
			e.printStackTrace();
		}
		
		System.out.println(api.getAccountData());
	}

I get this error:

com.ampro.robinhood.throwables.RobinhoodApiException: Failed to log user in: no token
	at com.ampro.robinhood.RobinhoodApi.<init>(RobinhoodApi.java:105)
	at com.ampro.robinhood.Test.main(Test.java:11)
Exception in thread "main" java.lang.NullPointerException
	at com.ampro.robinhood.Test.main(Test.java:17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions