Giter Club home page Giter Club logo

hoppscotch-backend-go's People

Contributors

dependabot[bot] avatar ling7334 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

hoppscotch-backend-go's Issues

query me failed with 422 internal server error

log

2024-02-16T04:01:54Z 2024-02-16T04:01:54Z DBG 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z DBG 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z DBG 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z DBG uid: ***
2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF IsLogIn | 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF IsLogIn | obj=null
json: error calling MarshalJSON for type json.RawMessage: invalid character '-' after object key:value pair
goroutine 49 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
runtime/debug.PrintStack()
	/usr/local/go/src/runtime/debug/stack.go:16 +0x13
github.com/99designs/gqlgen/graphql.DefaultRecover({0xc0003031c0?, 0xc0003031c0?}, {0xcf5f40?, 0xc0003a8ab0?})
	/go/pkg/mod/github.com/99designs/[email protected]/graphql/recovery.go:17 +0x6b
github.com/99designs/gqlgen/graphql/executor.(*Executor).PresentRecoveredError(0xc00030a280, {0xeff908, 0xc00035cb40}, {0xcf5f40?, 0xc0003a8ab0?})
	/go/pkg/mod/github.com/99designs/[email protected]/graphql/executor/executor.go:157 +0x43
github.com/99designs/gqlgen/graphql/handler.(*Server).ServeHTTP.func1()
	/go/pkg/mod/github.com/99designs/[email protected]/graphql/handler/server.go:105 +0x99
panic({0xcf5f40?, 0xc0003a8ab0?})
	/usr/local/go/src/runtime/panic.go:914 +0x21f
github.com/99designs/gqlgen/graphql/handler/transport.writeJson({0xef7940, 0xc000346540}, 0xc00035cb40?)
	/go/pkg/mod/github.com/99designs/[email protected]/graphql/handler/transport/util.go:16 +0x5c
github.com/99designs/gqlgen/graphql/handler/transport.POST.Do({0xeff908?}, {0xefdf48?, 0xc000346540}, 0xc000315600, {0xefe098, 0xc00030a280})
	/go/pkg/mod/github.com/99designs/[email protected]/graphql/handler/transport/http_post.go:91 +0x587
github.com/99designs/gqlgen/graphql/handler.(*Server).ServeHTTP(0xc0000760c0, {0xefdf48?, 0xc000346540}, 0xc000315600)
	/go/pkg/mod/github.com/99designs/[email protected]/graphql/handler/server.go:122 +0x278
main.main.OperatorMiddleware.func5.1()
	/app/pkg/middleware/db.go:26 +0x2b
main.main.OperatorMiddleware.func5({0xefdf48?, 0xc000346540?}, 0xc000315500)
	/app/pkg/middleware/db.go:38 +0x21f
net/http.HandlerFunc.ServeHTTP(0xca8a20?, {0xefdf48?, 0xc000346540?}, 0xef5360?)
	/usr/local/go/src/net/http/server.go:2136 +0x29
main.main.JwtMiddleware.func6.1()
	/app/pkg/middleware/jwt.go:71 +0x2b
main.main.JwtMiddleware.func6({0xefdf48?, 0xc000346540}, 0xc000315400)
	/app/pkg/middleware/jwt.go:166 +0x8c4
net/http.HandlerFunc.ServeHTTP(0xc0000a0ae8?, {0xefdf48?, 0xc000346540?}, 0xc000012d20?)
	/usr/local/go/src/net/http/server.go:2136 +0x29
main.main.LogMiddleware.func7.1()
	/app/pkg/middleware/log.go:15 +0x54
main.main.LogMiddleware.func7({0xefdf48?, 0xc000346540}, 0xc000315300)
	/app/pkg/middleware/log.go:18 +0xdc
net/http.HandlerFunc.ServeHTTP(0x10?, {0xefdf48?, 0xc000346540?}, 0xc000312c2c?)
	/usr/local/go/src/net/http/server.go:2136 +0x29
net/http.(*ServeMux).ServeHTTP(0x410985?, {0xefdf48, 0xc000346540}, 0xc000315300)
	/usr/local/go/src/net/http/server.go:2514 +0x142
net/http.serverHandler.ServeHTTP({0xefb500?}, {0xefdf48?, 0xc000346540?}, 0x6?)
	/usr/local/go/src/net/http/server.go:2938 +0x8e
net/http.(*conn).serve(0xc000327710, {0xeff908, 0xc000308720})
	/usr/local/go/src/net/http/server.go:2009 +0x5f4
created by net/http.(*Server).Serve in goroutine 1
	/usr/local/go/src/net/http/server.go:3086 +0x5cb
2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 2024-02-16T04:01:54Z 2024-02-16T04:01:54Z INF 127.0.0.1:56374 [POST] /graphql in 7.199608ms 
172.20.0.3 - - [16/Feb/2024:04:01:54 +0000] "POST /graphql HTTP/1.1" 422 60 "https://hoppscotch.**.**/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"

[feature]: 全文检索功能

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

现在只能检索标题

Steps to reproduce

1

Environment

Release

Version

Self-hosted

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.