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

sandbox.js line 471 ReferenceError: body is not defined #155

Closed
AndersonDaSilvaOSF opened this issue Jun 2, 2020 · 2 comments · Fixed by #157
Closed

sandbox.js line 471 ReferenceError: body is not defined #155

AndersonDaSilvaOSF opened this issue Jun 2, 2020 · 2 comments · Fixed by #157
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@AndersonDaSilvaOSF
Copy link

Inside lib/sandbox.js, line 471 you will get a ReferenceError: body is not defined because you are trying to access a variable named body that does not exist. It should be res.body

@tobiaslohr tobiaslohr added the bug Something isn't working label Jun 4, 2020
@tobiaslohr
Copy link
Contributor

True, thanks for the hint @AndersonDaSilvaOSF. Do you plan to submit a PR to fix this?

@astound-ci
Copy link

astound-ci commented Jun 9, 2020

@tobiaslohr I got this error today while creating a sandbox:

                    formatError(body.error, res.statusCode)));
                                ^
ReferenceError: body is not defined
    at /snapshot/master/lib/sandbox.js:471:33
    at ensureValidToken (/snapshot/master/lib/ocapi.js:94:9)
    at Request._callback (/snapshot/master/lib/ocapi.js:148:9)
    at Request.callback (/snapshot/master/node_modules/request/request.js:185:22)
    at Request.emit (events.js:311:20)
    at Request.<anonymous> (/snapshot/master/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:311:20)
    at IncomingMessage.<anonymous> (/snapshot/master/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:417:28)
    at IncomingMessage.emit (events.js:323:22)```

@tobiaslohr tobiaslohr added this to the 2.5.1 milestone Jun 9, 2020
@tobiaslohr tobiaslohr added the good first issue Good for newcomers label Jun 9, 2020
tobiaslohr added a commit to tobiaslohr/sfcc-ci that referenced this issue Jun 9, 2020
tobiaslohr added a commit that referenced this issue Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants