Giter Site home page Giter Site logo

boxing / boxrec-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.67 MB

Docker version of the boxrec npm package

License: MIT License

Dockerfile 1.54% Shell 8.76% TypeScript 89.69%
boxrec boxrec-boxer-profile boxrec-docker boxrec-api boxing boxing-api

boxrec-docker's People

Contributors

mikedidomizio avatar

Watchers

 avatar

boxrec-docker's Issues

Unable to login with curl or provided script

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.