504 Gateway Time-out

Highlighted
Shopify Partner
11 0 1

I have created an APP that allows me to show products from a certain collection on a wordpress page. It was working fine until yesterday. Now I get a 504 error and I do not know why, as once APP was complete I did not make any changes at all and it was ok. But I got this error yesterday for some reason. Is it something wrong with Shopify API?

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
143 0 27

Hi George,

That sounds really strange. Are you still getting 504 errors now? Would you mind sending me more details through email? josh.brown@shopify.com

0 Likes
Highlighted
Shopify Partner
11 0 1

Hi Josh,

I realized why it happens. I get this error when I request more than 15-20 products. I read somewhere that the limit is 250 product. Is this correct? How I could get let's say 100 products.

0 Likes
Highlighted
Shopify Staff (Retired)
Shopify Staff (Retired)
143 0 27

You could retrieve 100 products by making an authenticated call to an endpoint like this:
https://yourstore.myshopify.com/admin/products.json?limit=100
We have some documentation on this here: https://docs.shopify.com/api/product#index

0 Likes
Highlighted
Shopify Partner
11 0 1

I use /admin/collects.json?collection_id=XXXXXXXXX as I need to retrieve data from a certain collection

Don't they work in the same way?

0 Likes
Highlighted
Excursionist
12 0 6

I am getting this when I try to access my store...I'm not getting to the admin panel at all. Completely cannot access my store.

4 Likes
Highlighted
New Member
1 0 3

Exactly the same here for me!

3 Likes
Highlighted
New Member
2 0 8

Same here, can't enter my store due to a 504 Gateway Time-out. 

3 Likes
Highlighted
New Member
2 0 2

Omg same here I am fairly new been doing business for a little over a month this is disappointing 

2 Likes
Highlighted
New Member
1 0 3

I am getting same error

3 Likes