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

Unable to login with curl or provided script #11

Open
alpha-tango-kilo opened this issue Jul 13, 2020 · 2 comments
Open

Unable to login with curl or provided script #11

alpha-tango-kilo opened this issue Jul 13, 2020 · 2 comments

Comments

@alpha-tango-kilo
Copy link

I filled out .env with my login, kept the port the same at 8080, then did the following:

  1. Built with docker build -t "boxing/boxrec-docker" .

  2. Ran using docker run -p 8080:8080 boxing/boxrec-docker

Output of 2:

> [email protected] start /usr/src/app
> ts-node -r tsconfig-paths/register src/main.ts

[Nest] 23   - 2020-07-13 16:26   [NestFactory] Starting Nest application...
[Nest] 23   - 2020-07-13 16:26   [InstanceLoader] AppModule dependencies initialized +14ms
[Nest] 23   - 2020-07-13 16:26   [RoutesResolver] LoginController {/login}: +11ms
[Nest] 23   - 2020-07-13 16:26   [RouterExplorer] Mapped {/, POST} route +3ms
[Nest] 23   - 2020-07-13 16:26   [RoutesResolver] BoxerController {/boxer}: +1ms
[Nest] 23   - 2020-07-13 16:26   [RouterExplorer] Mapped {/:id, GET} route +1ms
[Nest] 23   - 2020-07-13 16:26   [RoutesResolver] RatingsController {/ratings}: +1ms
[Nest] 23   - 2020-07-13 16:26   [RouterExplorer] Mapped {/, GET} route +0ms
[Nest] 23   - 2020-07-13 16:26   [RoutesResolver] ScheduleController {/schedule}: +0ms
[Nest] 23   - 2020-07-13 16:26   [RouterExplorer] Mapped {/, GET} route +1ms
[Nest] 23   - 2020-07-13 16:26   [RoutesResolver] ResultsController {/results}: +0ms
[Nest] 23   - 2020-07-13 16:26   [RouterExplorer] Mapped {/, GET} route +1ms
[Nest] 23   - 2020-07-13 16:26   [NestApplication] Nest application successfully started +3ms
running on undefined undefined
  1. Tried using ./scripts/login.sh and curl -d "username=XXXX&password=XXXX" 127.0.0.1:8080/login

I get a curl error: curl: (56) Recv failure: Connection reset by peer. When elaborated with a --ascii-trace, it says:

== Info:   Trying 127.0.0.1:8080...
== Info: Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
=> Send header, 153 bytes (0x99)
0000: POST /login HTTP/1.1
0016: Host: 127.0.0.1:8080
002c: User-Agent: curl/7.71.1
0045: Accept: */*
0052: Content-Length: 40
0066: Content-Type: application/x-www-form-urlencoded
0097:
=> Send data, 40 bytes (0x28)
0000: username=XXXX&password=XXXX
== Info: upload completely sent off: 40 out of 40 bytes
== Info: Recv failure: Connection reset by peer
== Info: Closing connection 0

This happens on master and the 1.1.0 tag. I'm on Arch Linux. Happy to add any extra info as needed

@mikedidomizio
Copy link
Member

Hey there,

I must have missed the notification for this and it's been a while 😞 .
This project was somewhat abandoned due to not really being in high demand and the main boxrec project taking all my time.

I hope you've figured out a solution in this time, have moved on, or used the boxrec package (which also now requires some work) to get some results.

@alpha-tango-kilo
Copy link
Author

Not a problem, I ended up moving on and using my own solution for the project I was making at the time. I never resolved the issue so it's probably still present. No need to give this issue any urgency. Cheers!

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