some problems when i add products to the store by api in app

Solved
Highlighted
Tourist
5 1 0

At first, thank you every one.

            I have some problems when i add the product to the store in app. It return a data which is not json format. Such as,"<html><body>You are being <a href="https://xxx.myshopify.com/admin/products.json">redirected</a>.</body></html>".

            And i do not what happen! It is ok when I use the test store to test, and it has wrong when i use the another store to test it.

0 Likes
Highlighted
Tourist
5 1 0

Who can help me? I need help.

0 Likes
Highlighted
Tourist
5 1 0

I found someting new, when i  called the add merchandise interface, it always jumped to the product list page!

0 Likes
Highlighted
Tourist
5 1 0

This is an accepted solution.

I have solved this problem. It is caused by the associated domain name. The shopify api interface must use the myshopify domain  to request.

 

0 Likes