Solved

Metafields deprecated message

ken157
Shopify Partner
12 0 4

I still get this message about deprecation

This is the only place where it's called

there is no valueType, or anything else, how can i get more info about this?

I using:

shopify-api-node

API VER: 

2022-07



Accepted Solution (1)

tyler-rowsell
Shopify Staff
29 4 3

This is an accepted solution.

Hello Folks,

 

I took a closer look at this issue and noticed a couple things.

 

1) If you update to `2022-04` you should no longer see these deprecation warnings.

2) If you are unable to update at this time, when making requests using a REST Api before `2022-04`, you'll need to explicitly request the fields you require. Otherwise `value_type` is included in the response and the request is marked as deprecated. You can request explicit fields by appending `fields=id,namespace,etc` to a request.

 

 

If you're experiencing the deprecation warning still after the above suggestions please send me a message with your app/partner organization name and I can take a closer look. 

 

Thanks,

Tyler

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 19 (19)

Michaël_G_
Shopify Expert
74 0 59

We have the same issue here, I have updated our code to remove any trace of value_type, but we still get those deprecation message, and I am unsure why. Would it be a bug in the detection made by Shopify?

lianjiancheng
Shopify Partner
2 0 0

Have you solved this problem now?

ken157
Shopify Partner
12 0 4

I still facing this issue, it's not fixed yet

Tejas_Sangoi
Shopify Partner
48 0 3

Same issue for us. Please share the solution if you find it.

lianjiancheng
Shopify Partner
2 0 0

We also encountered the same problem, did you solve it? Can you share if you find a solution. thanks

tyler-rowsell
Shopify Staff
29 4 3

This is an accepted solution.

Hello Folks,

 

I took a closer look at this issue and noticed a couple things.

 

1) If you update to `2022-04` you should no longer see these deprecation warnings.

2) If you are unable to update at this time, when making requests using a REST Api before `2022-04`, you'll need to explicitly request the fields you require. Otherwise `value_type` is included in the response and the request is marked as deprecated. You can request explicit fields by appending `fields=id,namespace,etc` to a request.

 

 

If you're experiencing the deprecation warning still after the above suggestions please send me a message with your app/partner organization name and I can take a closer look. 

 

Thanks,

Tyler

To learn more visit the Shopify Help Center or the Community Blog.

ken157
Shopify Partner
12 0 4

Hi, we still facing this issue
Libs:
https://github.com/MONEI/Shopify-api-node

We're using:

"shopify-api-node": "^3.8.1",



2022-07

and still facing this issue,  value_type is not used

usage:
Reading

anncodesolution
Shopify Partner
5 0 3

Hello Tyler

We have updated the API version to 2022-07 but still see the warning.

App name: Custom Tiered discount

Partner Organization: Anncode Solutions

Please look into it.

 

Thanks in Advance,

Rahul

 

Rahul Singh
Founder and CEO
Anncode
https://anncode.com
Matt_Goodwin
Shopify Partner
54 1 70

Hi @tyler-rowsell we are still seeing the API warning and our customers are being told our app is unsupported despite using 2022-04 and not calling for or using the depreciated metafield values in any way.  Please help!  We are will Wholesale Gorilla.  Thanks!  

anncodesolution
Shopify Partner
5 0 3

Try passing api version in your shopify requests.

By default when no version is specified Shopify falls back to the oldest version available which currently is 2022-01. If you attach a version to your requests it should fix the problem.

It worked for us.

Rahul Singh
Founder and CEO
Anncode
https://anncode.com
Matt_Goodwin
Shopify Partner
54 1 70

This also worked for us.  Even though it worked it's still very frustrating.  If an unversioned call is supposed to fail forward to the oldest supported version, you would think that version would be considered 'supported' in the API health report.

 

We made sure all of our API requests were versioned, but this still seems like an oversight on Shopify's part. 

John_Schulz
Shopify Partner
20 1 9

Thanks @Matt_Goodwin and @anncodesolution .  We are pushing the change today for GET requests to the `metafields` endpoint and will see if it helps.  We already did that for all PUT and POST requests before the deadline since we were changing request body parameters to avoid using deprecated types...I agree this seems redundant.  I'll keep you guys posted.

John_Schulz
Shopify Partner
20 1 9

Hello @tyler-rowsell we are also still seeing the API warning for the Metafield `value_type` field and our customers are being told our app is unsupported...despite using API version `2022-07` and not using `value_type` at all.  We have searched every line of code for any missed references, re-deployed the app several times, followed every recommendation to log all calls to the Metafield API from our app and have not received any with `X-Shopify-Deprecated...` headers.

Our app is Shop Protector
Partner name is Human Presence

Please advise,
John

ivan36
Shopify Partner
1 0 1

Hello @tyler-rowsell we are also still seeing the API warning for the Metafield `value_type` field and our customers are being told our app is unsupported...despite using new API version and not using `value_type` at all.  We have searched every line of code for any missed references, re-deployed the app several times, followed every recommendation to log all calls to the Metafield API from our app.

Our app is 60seconds 
Please advise,
Ivan

chenwenfeng
Shopify Partner
8 0 0

Hi @tyler-rowsell , until today I still having the issue even I modified shopify-api-node code by removing value_type, please help, it is very urgent since this metafield has been deprecated since Jan-2023.

 

regards,

Wenfeng

ShopifyDevSup
Shopify Staff
1322 218 457

Hi @chenwenfeng ,

Can you replicate this issue in an HTTP client like Postman using a stable version of the REST Admin API? If so could you share the replication steps for us to take a closer look?

 

If the issue only occurs with the node API library I would recommend checking the Github repo for any open issues, or creating a new one with all the steps you are taking as well as what API version you are using.

 

Cheers,

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

chenwenfeng
Shopify Partner
8 0 0

Hi Support,

Sorry I don't get it, will metafields error when I use postman to call? 

What I understand is Shopify checking our apps to determine whether we are still using only valueType of metafield or not, right?

 

regards,

Wenfeng

ShopifyDevSup
Shopify Staff
1322 218 457

The deprecation warnings will come up if you access a deprecated field in postman, or using an API library. Using an HTTP client is how we recommend testing to determine the version being requested and rule out anything else related to a client's API library, or any other middleware they could be using.

If you aren't explicitly adding the value_type in your request, is it possible you're requesting an API version that uses that deprecated field?

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

chenwenfeng
Shopify Partner
8 0 0

Hi Support,

I have tried 2 data to base on your request
1. success created product with obsolette metafield type without error.

2. failed to create product with error type - cann't be blank

 

I use both URL return same result
https://xxxxxxx.myshopify.com/admin/api/2021-07/products.json
https://xxxxxxx.myshopify.com/admin/api/2021-07/products.json