John F

Results 11 comments of John F

https://github.com/lib4u/grequest you can try new package for golang requests

https://github.com/lib4u/grequest yiu can use this also

this problem still have panic: concurrent write to websocket connection goroutine 274 [running]: github.com/gorilla/websocket.(*messageWriter).flushFrame(0xc006411950, 0x1, {0x0?, 0x0?, 0x0?}) /home/john_f/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:617 +0x4af github.com/gorilla/websocket.(*messageWriter).Close(0x503188?) /home/john_f/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:731 +0x35 github.com/gorilla/websocket.(*Conn).beginMessage(0xc0037af080, 0xc005e37500, 0x1) /home/john_f/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:480 +0x37 github.com/gorilla/websocket.(*Conn).NextWriter(0xc0037af080, 0x1)...

imaked this wrapper for websocket with sync.Mutex, nowthis work perfect for me and my program not get panic you can use that ``` package websocket import ( "net/http" "sync" "github.com/gorilla/websocket"...

https://github.com/lib4u/grequest new project

{"level":"info","component":"scrapemate","job":"Job{ID: 5ed9efae-37b6-49c2-a159-7980a3338ff5, Method: GET, URL: https://www.google.com/maps/place/MedMat+Medical/data=!4m7!3m6!1s0x866121004c5244f9:0xdffb481a0f773165!8m2!3d27.5634785!4d-99.5022558!16s%2Fg%2F11lnrc08pr!19sChIJ-URSTAAhYYYRZTF3DxpI-98?authuser=0&hl=en&rclk=1, UrlParams: map[hl:en]}","error":"could not convert to string","status":"failed","duration":1525.895664,"time":"2025-09-25T08:10:00.848006447Z","message":"job finished"} now only this problem

anyway this is not working still {"level":"info","component":"scrapemate","job":"Job{ID: 0048c831-3896-4e90-adee-bed82283760f, Method: GET, URL: https://www.google.com/maps/place/California+Gourmet+Pizza/data=!4m7!3m6!1s0x8092f1280bed870b:0x76bec8092adc4ef2!8m2!3d36.21312!4d-121.126316!16s%2Fg%2F1tfdz2p0!19sChIJC4ftCyjxkoAR8k7cKgnIvnY?authuser=0&hl=en&rclk=1, UrlParams: map[hl:en]}","error":"could not convert to string","status":"failed","duration":1490.586862,"time":"2025-10-14T11:03:23.693318273Z","message":"job finished"} {"level":"error","component":"scrapemate","error":"could not convert to string","time":"2025-10-14T11:03:23.693675375Z","message":"error while processing job"}

https://github.com/lib4u/grequest also for working with requests in golang