Skip to content

Commit

Permalink
Merge pull request #218 from NetsBlox/alexa-issues
Browse files Browse the repository at this point in the history
Update dockerfile; cloud client
  • Loading branch information
brollb authored Feb 7, 2024
2 parents 52035d3 + accce76 commit bb7d16a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ADD . /netsblox
RUN echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \
apt-get update

# Fix broken perl setup as described here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993755
RUN cd /tmp && \
apt-get -y download libcrypt1 && \
dpkg-deb -x $(ls | grep libcrypt) . && \
cp -av lib/x86_64-linux-gnu/* /usr/lib/x86_64-linux-gnu/
# # Fix broken perl setup as described here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993755
# RUN cd /tmp && \
# apt-get -y download libcrypt1 && \
# dpkg-deb -x $(ls | grep libcrypt) . && \
# cp -av lib/x86_64-linux-gnu/* /usr/lib/x86_64-linux-gnu/

# Install updated C++ std lib (required for NodeHun)
RUN apt-get install -y libstdc++-11-dev gnuplot \
Expand All @@ -25,7 +25,7 @@ RUN apt-get clean && \
cd /netsblox && npm install # Install netsblox dependencies

# Build the service docs for the publicly deployed services
RUN apt-get install -y python3-sphinx python3-sphinx-rtd-theme && \
node utils/build-docs.js
RUN apt-get install -y python3-sphinx python3-sphinx-rtd-theme
# node utils/build-docs.js

CMD ["npm", "start"]
3 changes: 2 additions & 1 deletion src/cloud-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class NetsBloxCloud {
},
};
console.log("whoami using cookies:", cookieStr);
return await this.get("/users/whoami", opts);
const response = await this.fetch("/users/whoami", opts);
return await response.text();
}

async getRoomState(projectId) {
Expand Down
1 change: 1 addition & 0 deletions src/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = {
InvalidKeyProviderError,
MissingFieldError,
LoginRequired,
RequestError,

handleUserErrors,
};

0 comments on commit bb7d16a

Please sign in to comment.