Coder Social home page Coder Social logo

gaia's People

Contributors

tmtygnz avatar

Watchers

 avatar

gaia's Issues

Server panicking when parameter isn't set

Query:
GET localhost:8080/packaging/by/

Terminal:

2024/04/07 11:27:13 http: panic serving 127.0.0.1:52564: runtime error: invalid memory address or nil pointer dereference
goroutine 19 [running]:
net/http.(*conn).serve.func1()
	C:/Program Files/Go/src/net/http/server.go:1898 +0xbe
panic({0x3ab1a0?, 0x698420?})
	C:/Program Files/Go/src/runtime/panic.go:770 +0x132
gaia/internal/inline-rejection/feature_handler.(*PackagingRestHandler).FetchPackagingByIdHandler(0xc000048178, {0x49f6d0, 0xc0000b20e0}, 0x25b093e0598?)
	C:/Users/josti/Desktop/Projects/Gaia/internal/inline-rejection/feature_handler/packaging_handler.go:42 +0x68
net/http.HandlerFunc.ServeHTTP(0x6ac3a0?, {0x49f6d0?, 0xc0000b20e0?}, 0x2fdffa?)
	C:/Program Files/Go/src/net/http/server.go:2166 +0x29
net/http.(*ServeMux).ServeHTTP(0x105879?, {0x49f6d0, 0xc0000b20e0}, 0xc0000a4240)
	C:/Program Files/Go/src/net/http/server.go:2683 +0x1ad
net/http.serverHandler.ServeHTTP({0xc0000a2270?}, {0x49f6d0?, 0xc0000b20e0?}, 0x6?)
	C:/Program Files/Go/src/net/http/server.go:3137 +0x8e
net/http.(*conn).serve(0xc00009e120, {0x49fdd0, 0xc0001868a0})
	C:/Program Files/Go/src/net/http/server.go:2039 +0x5e8
created by net/http.(*Server).Serve in goroutine 1
	C:/Program Files/Go/src/net/http/server.go:3285 +0x4b4

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.