I have seen on status page that that there was an outrage with hosted storage. Even though, the issue is resolved already according to green indicator on status page, I still get the response from storage only on my 5th attempt, as it keeps returning error: APIError: Unknown error. Received status code ‘504’. And when it doesn’t, it returns no results. No I’m a little confused, I don’t understand if the problem is with my query or the issues is with the hosted storage.
Is there someone experiencing hosted storage incidents now, especially the data not being stored properly (even though you get somewhat success response. In my case it returns “undefined”, but I think it’s okay, if it is not please let me know), or just getting empty array for your query.
FYI. Here my get query:
const queryResponse = await storage
.entity("similar_ideas")
.query()
.index("score")
.where(WhereConditions.isGreaterThan(0))
.getMany()
Store query:
const storeSimilarPairs = async (similarPairs) => {
for (const pair of similarPairs) {
try {
const response = await storage.entity('similar_ideas').set(pair.pair_one + ':' + pair.pair_two, {
project: pair.project,
project_two: pair.project_two,
is_same_project: pair.is_same_project,
pair_one: pair.pair_one,
pair_two: pair.pair_two,
score: pair.score
});
Indexes list:

