Giter VIP home page Giter VIP logo

notigocms's Issues

Downloading of image failed

I created an article with images and it seems to fail the downloading portion. Any clue? :)

$ ./NotiGoCMS -verbose
POST https://www.notion.so/api/v3/getRecordValues
downloaded info about 2 versions in 487.450102ms
POST https://www.notion.so/api/v3/getRecordValues
POST https://www.notion.so/api/v3/loadPageChunk
001 '075ad06e-41d2-44d9-a868-05786751088c' : read from cache in 490.049371ms
POST https://www.notion.so/api/v3/getRecordValues
POST https://www.notion.so/api/v3/loadPageChunk
002 'a2ab542f-01f8-4a07-92e4-ee59e6b98757' : read from cache in 4.518198ms
Downloading https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fc5b22dd-690d-46cf-bad4-1c45e66e030e/IMG20201122144306.jpg ... POST https://www.notion.so/api/v3/getSignedFileUrls
Error: status code 400 Bad Request
Body:
{
  "errorId": "71bb6296-2b3f-4cc7-9160-3fbe5be6243a",
  "message": "Invalid input.",
  "name": "ValidationError"
}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x13cd93d]

goroutine 1 [running]:
main.downloadImage(0xc000492f00, 0xc000294960, 0x9e, 0x1, 0x1, 0x0, 0xc000014640, 0x127, 0x4, 0xc0000a5aa0)
	/Users/kennethlimcp/Desktop/NotiGoCMS/notion_import.go:73 +0x7d
main.downloadAndCacheImage(0xc000492f00, 0xc000121080, 0x76, 0xc00021c600, 0x27, 0x40, 0xc000201c00)
	/Users/kennethlimcp/Desktop/NotiGoCMS/notion_import.go:96 +0x334
main.(*Article).processBlocks(0xc000082d80, 0xc00021c600, 0x27, 0x40)
	/Users/kennethlimcp/Desktop/NotiGoCMS/article.go:501 +0x2e5
main.notionPageToArticle(0xc000492f00, 0xc0001cb300, 0x2)
	/Users/kennethlimcp/Desktop/NotiGoCMS/article.go:553 +0x279
main.loadArticles(0xc0000a5f08, 0x178a2c0, 0x14724a0)
	/Users/kennethlimcp/Desktop/NotiGoCMS/articles.go:146 +0x2b3
main.rebuildAll(0xc00019ff08, 0x178a2c0, 0x1ed)
	/Users/kennethlimcp/Desktop/NotiGoCMS/cms.go:38 +0x3d
main.main()
	/Users/kennethlimcp/Desktop/NotiGoCMS/cms.go:104 +0x345

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.