Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiException : phpish\shopify\ApiException: [414] #48

Open
sandeeppangeni opened this issue Feb 17, 2022 · 0 comments
Open

ApiException : phpish\shopify\ApiException: [414] #48

sandeeppangeni opened this issue Feb 17, 2022 · 0 comments

Comments

@sandeeppangeni
Copy link

`$get_template = $shopify("GET /admin/api/".$apiversion."/themes/$theme_ids/assets.json?asset[key]=snippets/card-product.liquid&theme_id=$theme_ids");
$value_data = trim($get_template['value']);
$findstring = "

Test
";
$updatedval = $value_data. $findstring;
$updatetemplate = array(
'asset' => array(
"key" => "snippets/card-product.liquid",
"value" => "$updatedval"
)
);

try{
$templateupdate = $shopify("PUT /admin/api/".$apiversion."/themes/$theme_ids/assets.json", $updatetemplate);
}
catch (shopify\ApiException $e) {
error_log($e);
}
`
On put request , phpish\shopify\ApiException: [414] error.

Is there any way to fix this ? I have tried to add Content-Length on the request header too. But the issue not resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant