![](https://cdn.discordapp.com/avatars/443805808753377280/4d8b18634d1bc438d2ed96482c80261b.webp)
Hey i am getting this error when i try to run my golang code i been looking for a solution for a while so i come here, here is the full error i am fairly new to goland so sorry if im being stupid :
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x6869bc]
goroutine 1 [running]: github.com/appwrite/sdk-for-go/models.(*DocumentList).Decode(0xc0003ffe98?, {0x6db5e0?, 0xc000191ea0?}) /home/vex/go/pkg/mod/github.com/appwrite/sdk-for-go@v0.3.0/models/documentlist.go:25 +0x1c main.getTransactions(0xc0003ffe98) /home/vex//d/main.go:68 +0x13a main.main() /home/vex///main.go:40 +0x225 exit status 2
And here is a snippet of my code
![](https://cdn.discordapp.com/avatars/443805808753377280/4d8b18634d1bc438d2ed96482c80261b.webp)
func getDatabaseInfo(appwriteDatabases *databases.Databases) {
res, := appwriteDatabases.ListDocuments(
"databaseId", /* Both this and the collectionId below are set to valid values in the codebase */
"collectionId", /* Same here */
appwriteDatabases.WithListDocumentsQueries(
[]string{
query.NotEqual("Complete", true),
},
),
)
}
![](https://cdn.discordapp.com/avatars/342016391035224065/555d42779cc291c466c45b2b095c8f18.webp)
@Guille
Recommended threads
- Query relations
I have 3 tables in relation, but I only get all 3 back if I get the last one. Which is bad because I can only query by the first one. Expectation: Get the firs...
- schema best practice? (single source of ...
im using appwrite, and i have two project : dev and prod. i need the database structure to match, and also modify it sometimes (add/remove attributes from speci...
- Help with Appwrite offset pagination to ...
Hi, I’m trying to fetch all documents using offset-based pagination in Appwrite, but I ran into some issues. Below is my code and the approach I followed. The p...
![](/images/bgs/pre-footer.png)