Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Calling getprofile returns the error "utils.fetchJson is not a function" #248

Closed
Akaryatrh opened this issue Jan 10, 2019 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Akaryatrh
Copy link

Describe the bug
A simple await Box.getProfile('0x0c269b2d1376b2a2a5222564f9c8ea0065dd2c79'); will return an error saying utils.fetchJson is not a function

Bug is quite simple : npm package contains a utils.js file along a /utils folder. Webpack will use the file when importing module, but won't find the fetchJson() function.
The utils.js file should not be there.

To Reproduce
Steps to reproduce the behavior:

  1. Install package 3box v1.1.0
  2. Try to get a profile with Box.getProfile() method
  3. Error pops-in console
@oed
Copy link
Member

oed commented Jan 10, 2019

Thanks for reporting! Will have a fix in the next version! (which will be released today)

@oed oed self-assigned this Jan 10, 2019
@oed oed added the bug Something isn't working label Jan 10, 2019
@sethfork sethfork mentioned this issue Jan 10, 2019
@sethfork
Copy link

Submitted a PR with a fix. Let me know if you'd like me to change anything @oed

@c-castillo
Copy link
Contributor

Hi @sethfork! Thanks for the PR, however your fix is already done in release 1.2.0 (source file https://github.com/3box/3box-js/blob/develop/src/utils/index.js)
I'll close this PR for now since it's a duplicate.

Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants