Questions tagged [gin]

52 questions
0
votes
0 answers

"Headers were already written" error when connecting to Golang API with go-socket.io and gin

I have an API project in Golang using the socket.io package and gin. The project is running in a live environment. When I send requests to the server using Postman, I can establish a socket connection successfully. However, when I try to connect…
umutaktepe
  • 58
  • 7
0
votes
1 answer

How to use ShouldBind to receive formdata in Go Gin package's HTTP GET method for validating data?

After sending the formdata to the API defined by the http GET method in the golang gin package, can the server receive the data sent through ShouldBind? The intent of that api serves to verify that the requested formdata is valid data.
myskbj
  • 31
  • 4
0
votes
1 answer

Getting EOF for a valid json when doing a gin.Context.ShouldBind()

I'm getting a weird error which previously didn't appear for my code, which might be caused by my JWT implementation that I didn't test thoroughly tbh. So I have this current code: ginGine.POST("/edge_device_info", func(ctx *gin.Context) { …
rminaj
  • 560
  • 6
  • 28
0
votes
1 answer

PostgreSQL partial matching && operator over text[] as in LIKE and with GIN index

Related but different question Using a GIN index in PostgreSQL with a LIKE clause reveals the trigram extension which is very powerful for similarity search and sort. But in my case I have an array column, indexed with GIN (and normalized to upper)…
Gunther Schadow
  • 1,490
  • 13
  • 22
0
votes
0 answers

Entity Framework Core 7.0 GIN search accuracy

I use postgresql with EntityFramework Core 7.0 and build search vector with the default GIN method from 2 columns Title and Description of Products table, both of type string: builder.HasGeneratedTsVectorColumn( p =>…
-1
votes
0 answers

facing "XMLHttpRequest error." while using gin web framework

I'm using Go gin framework gin. In browser it is working fine, but in flutter web getting this error "XMLHttpRequest error." for some api I tried official CORS middleware library provided by gin, as well as other third party libraries like…
-1
votes
1 answer

Golang SetCookie method does not set cookie

I am writing a simple Login handler. Everything works just fine except setting the cookie. Here is the code : . . . cookie := &http.Cookie{ Name: credentials.EmailAddress, Value: sessionKey, MaxAge: 600, …
David
  • 47
  • 3
1 2 3
4