question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Asset - GET/PUT Config Settings Data

See original GitHub issue

Hi,

testing the native shopify API to get the “config/settings_data.json” file, the data returns correctly.

I used: https://SITENAME.myshopify.com/admin/themes/THEMEID/assets.json?asset[key]=config/settings_data.json

When i try to get that data using this Node Api (connected to the same store):

let params = {
	key: "config/settings_data.json"
}

shopify.asset.get(THEMEID, params)
.then(
	asset => {
		console.log('asset', asset);
		callback(null, asset);
	}
)
.catch(
	err => {
		console.log(err);
		callback(err);
	}
);

I get an “undefined”.

Can you help me, please?

Moreover, is it possible to upload the same JSON in another store?

Thanks a lot.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
lpincacommented, Jun 11, 2019
0reactions
lpincacommented, Jun 15, 2019

Closing as there is nothing actionable to do on our side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Asset Settings - Salesforce Help
Customize your page layouts and object permissions to control how your users work with assets. Required Editions and User Permissions Available in Salesfo....
Read more >
Configuring Asset Management settings - BMC Documentation
From the Application Settings list, select Asset Management > Advanced Options > Asset Management Settings, and then click Open. The Asset ...
Read more >
How to configure a ConfiguredAssetDataConnector
A ConfiguredAssetDataConnector allows you to specify that you have multiple Data Assets in a Datasource , but also requires an explicit listing of...
Read more >
Lighting Data Asset - Unity - Manual
A Lighting Data Asset stores precomputed lighting data for a Scene in the Unity Editor. Lighting Data Assets exist as separate files in...
Read more >
When to use assets or a config file - UiPath Community Forum
In general, Assets should be used for global variables & constants used by multiple processes, as well as credentials. Config files should be ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found