Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML mime for image #15

Open
dgrechka opened this issue Dec 19, 2022 · 0 comments
Open

HTML mime for image #15

dgrechka opened this issue Dec 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@dgrechka
Copy link
Member

HTML mime for image

16:02:19 167026:	Trying to geocode "Россия, г. Раменское"...
16:02:20 167034:	Successfully geocoded "Россия, г. Рязань" as lat:54.629569 lon:39.742504
16:02:20 167034:	Sending snapshot to pipeline...
16:02:20 167034:	Successfully notified the pipeline
16:02:20 167034:	Dumping card to disk...
16:02:20 167034:	JSON card saved to disk
16:02:20 167034:	image file saved to disk
16:02:21 167026:	Successfully geocoded "Россия, г. Раменское" as lat:55.556766 lon:38.208843
16:02:21 Unsupported image mime type: text/html; charset=windows-1251
16:02:21 167026:	Panic during fetching of card Unsupported image mime type: text/html; charset=windows-1251
panic: Unsupported image mime type: text/html; charset=windows-1251 [recovered]
	panic: Unsupported image mime type: text/html; charset=windows-1251
goroutine 15 [running]:
github.com/LostPetInitiative/poiskzoo-ru-crawler/pkg/crawler.DoCardJob.func1()
	/app/pkg/crawler/downloader.go:27 +0xac
panic({0x6b7660, 0xc0000169c0})
	/usr/local/go/src/runtime/panic.go:884 +0x212
log.Panicf({0x71fe61?, 0x1f?}, {0xc000135b10?, 0xc0000169a0?, 0x0?})
	/usr/local/go/src/log/log.go:395 +0x67
github.com/LostPetInitiative/poiskzoo-ru-crawler/pkg/crawler.EncodeImage({0xc0007e4000, 0x8fef1, 0xac000}, {0xc000286b20, 0x1f})
	/app/pkg/crawler/cardJson.go:119 +0xe5
github.com/LostPetInitiative/poiskzoo-ru-crawler/pkg/crawler.NewCardJSON(0xc0000a03f0, 0xc00052a8b0, {0x71fbf6, 0x1e}, {0xc0007e4000, 0x8fef1, 0xac000}, {0xc000286b20, 0x1f})
	/app/pkg/crawler/cardJson.go:85 +0x278
github.com/LostPetInitiative/poiskzoo-ru-crawler/pkg/crawler.DoCardJob(0x28c72, {0xc00002200a, 0x3}, 0xc0001c0090)
	/app/pkg/crawler/downloader.go:83 +0xc1d
main.main.func1()
	/app/main.go:192 +0x6c
created by main.main
	/app/main.go:198 +0xefb
@dgrechka dgrechka added the bug Something isn't working label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant