Skip to main content

Questions tagged [gorilla]

Gorilla is a web toolkit for the Go programming language. It provides several modules to aid web programming: a URL router and dispatcher, a consistent session management system, and a http.response-struct mapper. It is licensed under the New BSD License.

2 votes
1 answer
83 views

Authorization Error in API Gateway endpoints using lambda with Chalice code

Here is the scenario: I had a Chalice app with two endpoints /getStream and /deleteStream. I migrated them to Nextjs functions eliminating the need for a Chalice app. So, I deleted the API Gateway ...
Amit's user avatar
  • 1,115
1 vote
1 answer
49 views

404 Not Working With React App on Golang Server [duplicate]

My Redirection works perfectly when running reactjs app in development environment (npm run dev), proper redirect to home. But when i serving same app on golang, after npm run build, redirection doesn'...
huzaib sayyed's user avatar
2 votes
0 answers
115 views

Unable to retrieve session value in Go Gin

Problem: The session data set during login is not persisting across subsequent requests. Expected output: The session data set during login should be stored and is accessible persist requests. func (...
Diwash Mainali's user avatar
0 votes
0 answers
42 views

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at.... CORS preflight response did not succeed

So, I'm creating a reactjs page where I want to consume a Golang Gorilla Mux api. But whenever I call the api this way: fetch('http://localhost:8080/commands/', { method: 'POST', ...
P2000Gua's user avatar
1 vote
2 answers
70 views

CORS Error: It does not have HTTP ok status. GoLang Mux API

I'm trying to make http requests via Angular 17 App. And everytime the browser responds: Access to XMLHttpRequest at 'http://localhost:8082/login' from origin 'http://localhost:4200' has been blocked ...
rafaelpadu's user avatar
  • 1,546
1 vote
1 answer
74 views

grpc-gateway: Context being passed to http handler losing values set on context

I'm at a loss with what is going on with my context between my GRPC handler and it calling gwmux.ServeHTTP(w, r.WithContext(ctx) I've stripped out a lot of the code to try and only include the bare ...
Kyle's user avatar
  • 1,472
0 votes
0 answers
53 views

Websocket write doesn't fail even if the network connection is broken [duplicate]

I have a websocket connection to another server in a different network and I keep sending data to it using the gorilla websocket lib's WriteMessage method. https://github.com/gorilla/websocket/blob/...
nerd's user avatar
  • 23
1 vote
1 answer
53 views

Prepoluting index page before mux Handle call

I recently built a small blog website for testing purposes and I'm a little stuck with this problem while writing the server in Go. I have all the files of the website inside the static folder, which ...
NicolaM94's user avatar
  • 129
1 vote
0 answers
48 views

Incorrect message sending to Centrifuge

Please help me solve the error. I have a Docker container with Centrifuge. I need to send messages to the 'user' channel. Everything should happen on the backend side - without involving the browser. ...
Jenny F's user avatar
  • 31
2 votes
2 answers
366 views

Gorilla session package error : "securecookie: hash key is not set"

I created an HTTP API to register with the GIN HTTP package and Gorilla Sessions. But I get an error message like the following: "error": "securecookie: hash key is not set" here ...
Hello 123's user avatar
-1 votes
1 answer
289 views

TypeScript Error: "Expected 0-1 arguments, but got 2" when initializing Mux object

I'm using TypeScript with the Mux library for video handling in my application. As per the documentation, I'm attempting to initialize a Mux object with the required token ID and token secret obtained ...
Dede's user avatar
  • 11
1 vote
1 answer
42 views

Handling the upgrade of a request client-side

I'm probably being stupid here, but I am upgrading a HTML Request to a WS, with Gorilla Mux, and can't seem to figure out how to access the WebSocket on the Webpage after upgrade, func loadSecureThing(...
Kestrel Kosdlic's user avatar
1 vote
0 answers
141 views

Error fetching data: SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>)

im having problems with gorilla sessions mainly, but with nextjs and frontend too, i can fetch all my data with no problem, but when i try to send the user to the front end from the gorilla session ...
vfreis09's user avatar
0 votes
0 answers
211 views

Golang gorilla websocket server refusing further connections after accepting approximately 16,300 concurrent connections

I am running Ubuntu Server 22.04 on a virtual machine with a configuration of 16 CPUs and 32GB of RAM. On this virtual machine, I have deployed a Golang server using Gorilla WebSocket with the goal of ...
Imoh Chinedu's user avatar
0 votes
1 answer
37 views

Manually deleting val from context map using Gorilla middleware

Do I need to do this: r.Use(func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { muxctx.Set(r, "req-res-ctx", &mw.Ctx{...
Alexander Mills's user avatar

15 30 50 per page
1
2 3 4 5
41