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

post或put 时,data若为{id:1,name:null} 这种带null值的对象,会报错Cannot convert undefined or null to object #7

Open
rockerneos opened this issue Aug 17, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@rockerneos
Copy link

rockerneos commented Aug 17, 2019

defaults.headers.put['Content-Type'] = 'application/json'

Cannot convert undefined or null to object;
TypeError: Cannot convert undefined or null to object
at t.getOwnPropertyNames ()
at t.isEmptyObject

@rockerneos rockerneos changed the title post或pust 时,data若为{id:1,name:null} 这种带null值的对象,会报错Cannot convert undefined or null to object post或put 时,data若为{id:1,name:null} 这种带null值的对象,会报错Cannot convert undefined or null to object Aug 17, 2019
@hatedMe hatedMe added the bug Something isn't working label Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants