cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you new to Dropbox? Our Newcomers group is the perfect place to learn the basics, find out more here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error 400 when trying to test Example Sdk-Dotnet

Error 400 when trying to test Example Sdk-Dotnet

evry1falls
Collaborator | Level 8
Go to solution

I get an error (400) when I attempt to test SimpleTest example from Sdk-dotnet from this Link

on my machine (Windows 10 32bit 1909) Visual Studio 2015.

I followed all instructions.

Here is my App Console:

App ConsoleApp Console

Here is the Code:

 

 // This loopback host is for demo purpose. If this port is not
        // available on your machine you need to update this URL with an unused port.
        private const string LoopbackHost = "http://127.0.0.1:52475/";

When I run the project I get this 

 

2.png

I click (N) or (Y) or (Enter), I get this

https://www.dropbox.com/oauth2/authorize?response_type=token&client_id=<MADE_IT_HIDDEN>&redirect_uri...

3.png

I have IIS installed and working.

I registered the port 52475 and made sure it is unused, like this

6.png

 

1 Accepted Solution

Accepted Solutions

evry1falls
Collaborator | Level 8
Go to solution

Solved.

My bad I was confused with RedirectUri, and code :

LoopbackHost = "http://127.0.0.1:52475/";

in visual studio.

I edited app console field <redirecturil> to equale <redirecturi var> in the code, to be

http://127.0.0.1:52475/authorize/

not just

http://127.0.0.1:52475/

SORRY.

View solution in original post

1 Reply 1

evry1falls
Collaborator | Level 8
Go to solution

Solved.

My bad I was confused with RedirectUri, and code :

LoopbackHost = "http://127.0.0.1:52475/";

in visual studio.

I edited app console field <redirecturil> to equale <redirecturi var> in the code, to be

http://127.0.0.1:52475/authorize/

not just

http://127.0.0.1:52475/

SORRY.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    evry1falls Collaborator | Level 8
What do Dropbox user levels mean?