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

getItemData() throws JSON error if data is empty #677

Merged
merged 3 commits into from
Apr 2, 2020
Merged

getItemData() throws JSON error if data is empty #677

merged 3 commits into from
Apr 2, 2020

Conversation

pfcstyle
Copy link
Contributor

If item data is empty, the error message is SyntaxError: The string did not match the expected pattern in safari.
Please test the issue by the public item: 38503de66a594dd7a656c72a34c04183.

@codecov
Copy link

codecov bot commented Mar 26, 2020

Codecov Report

Merging #677 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #677   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          107       107           
  Lines         1616      1616           
  Branches       286       286           
=========================================
  Hits          1616      1616           
Impacted Files Coverage Δ
packages/arcgis-rest-portal/src/items/get.ts 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8d099a...00ae895. Read the comment docs.

@pfcstyle pfcstyle changed the title Merge pull request #1 from Esri/master getItemData() throws JSON error if data is empty Mar 26, 2020
Copy link
Member

@tomwayson tomwayson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM

@patrickarlt
Copy link
Contributor

@tomwayson why don't you merge this so we can get it in the next release.

@tomwayson tomwayson merged commit ba2ceeb into Esri:master Apr 2, 2020
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

Successfully merging this pull request may close these issues.

3 participants