Skip to content

Why the example shows localhost redirected you too many times? #15

@hsluoyz

Description

@hsluoyz

Hi,

I downloaded the code and tried to run the example. I manually created two empty databases "default" and "social_test" in my localhost MySQL DB to avoid errors. Then the server runs. However, when I open http://localhost:8092 in my Chrome, it shows me the error in the picture. I don't know if there's anything else I need to do to run the example? FYI, I'm using a Win10 x64 system. Go is 1.8.1. IDE is Gogland, and the server runs from the IDE.

"C:\Program Files (x86)\JetBrains\Gogland 171.3780.106\bin\runnerw.exe" C:/Go\bin\go.exe run C:/GoPath/src/github.com/beego/social-auth/example/main.go
2017/05/18 20:07:55 [I] [asm_amd64.s:2197] http server Running on http://:8092
2017/05/18 20:08:06 [I] [main.go:241] GET / 
[beego] 2017/05/18 - 20:08:06 |      127.0.0.1| 302 |     8.0206ms|   match| GET      /     r:/
2017/05/18 20:08:06 [E] [main.go:58] SocialAuth.handleRedirect unknown provider 
[beego] 2017/05/18 - 20:08:06 |      127.0.0.1| 302 |     1.5052ms| nomatch| GET      /login
2017/05/18 20:08:06 [E] [main.go:58] SocialAuth.handleRedirect unknown provider 

image

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