Giter Club home page Giter Club logo

mslearn-tailspin-spacegame-web-azure-functions's Introduction

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

mslearn-tailspin-spacegame-web-azure-functions's People

Contributors

codingbandit avatar dependabot[bot] avatar edkaim avatar juliakm avatar tpetchel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mslearn-tailspin-spacegame-web-azure-functions's Issues

LeaderboardResponse not desiarilized correctly

When running the azure function project in the background and starting the web app, the desiarilized leaderboardResponse is not filled correctly:

image

// Call the leaderboard service with the provided parameters.
             LeaderboardResponse leaderboardResponse = await this._leaderboardServiceClient.GetLeaderboard(page, pageSize, mode, region);

I think it has something do to with the change from Newtonsoft to System.Text.Json.

Build failing because of the 16.x Node.js Upgrade to Microsoft Agents

Was following the MS-Learn module on Azure Functions and the build failed at the Run npm install step.

Log Tail:

2021-12-08T07:13:24.6460332Z 2732 error gyp verb download contents checksum {"node-v16.13.0-headers.tar.gz":"9abfc6dcd32bce3b9a978b8c23b8bb48a562c94919feba489f9bb9d4bbeeae66"}
2021-12-08T07:13:24.6461797Z 2732 error gyp verb validating download checksum for node-v16.13.0-headers.tar.gz (9abfc6dcd32bce3b9a978b8c23b8bb48a562c94919feba489f9bb9d4bbeeae66 == 9abfc6dcd32bce3b9a978b8c23b8bb48a562c94919feba489f9bb9d4bbeeae66)
2021-12-08T07:13:24.6462590Z 2732 error gyp verb get node dir target node version installed: 16.13.0
2021-12-08T07:13:24.6463447Z 2732 error gyp verb build dir attempting to create "build" dir: /home/vsts/work/1/s/node_modules/node-sass/build
2021-12-08T07:13:24.6464335Z 2732 error gyp verb build dir "build" dir needed to be created? /home/vsts/work/1/s/node_modules/node-sass/build
2021-12-08T07:13:24.6464914Z 2732 error gyp verb build/config.gypi creating config file
2021-12-08T07:13:24.6465720Z 2732 error gyp verb build/config.gypi writing out config file: /home/vsts/work/1/s/node_modules/node-sass/build/config.gypi
2021-12-08T07:13:24.6467264Z 2732 error (node:1867) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
2021-12-08T07:13:24.6468335Z 2732 error (Use `node --trace-deprecation ...` to show where the warning was created)
2021-12-08T07:13:24.6469352Z 2732 error gyp verb config.gypi checking for gypi file: /home/vsts/work/1/s/node_modules/node-sass/config.gypi
2021-12-08T07:13:24.6470263Z 2732 error gyp verb common.gypi checking for gypi file: /home/vsts/work/1/s/node_modules/node-sass/common.gypi
2021-12-08T07:13:24.6470868Z 2732 error gyp verb gyp gyp format was not specified; forcing "make"
2021-12-08T07:13:24.6471299Z 2732 error gyp info spawn /usr/bin/python2
2021-12-08T07:13:24.6471655Z 2732 error gyp info spawn args [
2021-12-08T07:13:24.6472320Z 2732 error gyp info spawn args   '/home/vsts/work/1/s/node_modules/node-gyp/gyp/gyp_main.py',
2021-12-08T07:13:24.6473002Z 2732 error gyp info spawn args   'binding.gyp',
2021-12-08T07:13:24.6473592Z 2732 error gyp info spawn args   '-f',
2021-12-08T07:13:24.6474159Z 2732 error gyp info spawn args   'make',
2021-12-08T07:13:24.6474733Z 2732 error gyp info spawn args   '-I',
2021-12-08T07:13:24.6475443Z 2732 error gyp info spawn args   '/home/vsts/work/1/s/node_modules/node-sass/build/config.gypi',
2021-12-08T07:13:24.6476101Z 2732 error gyp info spawn args   '-I',
2021-12-08T07:13:24.6476777Z 2732 error gyp info spawn args   '/home/vsts/work/1/s/node_modules/node-gyp/addon.gypi',
2021-12-08T07:13:24.6477580Z 2732 error gyp info spawn args   '-I',
2021-12-08T07:13:24.6478279Z 2732 error gyp info spawn args   '/home/vsts/.node-gyp/16.13.0/include/node/common.gypi',
2021-12-08T07:13:24.6478979Z 2732 error gyp info spawn args   '-Dlibrary=shared_library',
2021-12-08T07:13:24.6479619Z 2732 error gyp info spawn args   '-Dvisibility=default',
2021-12-08T07:13:24.6480323Z 2732 error gyp info spawn args   '-Dnode_root_dir=/home/vsts/.node-gyp/16.13.0',
2021-12-08T07:13:24.6481095Z 2732 error gyp info spawn args   '-Dnode_gyp_dir=/home/vsts/work/1/s/node_modules/node-gyp',
2021-12-08T07:13:24.6481909Z 2732 error gyp info spawn args   '-Dnode_lib_file=/home/vsts/.node-gyp/16.13.0/<(target_arch)/node.lib',
2021-12-08T07:13:24.6482707Z 2732 error gyp info spawn args   '-Dmodule_root_dir=/home/vsts/work/1/s/node_modules/node-sass',
2021-12-08T07:13:24.6483402Z 2732 error gyp info spawn args   '-Dnode_engine=v8',
2021-12-08T07:13:24.6484015Z 2732 error gyp info spawn args   '--depth=.',
2021-12-08T07:13:24.6484616Z 2732 error gyp info spawn args   '--no-parallel',
2021-12-08T07:13:24.6485238Z 2732 error gyp info spawn args   '--generator-output',
2021-12-08T07:13:24.6485842Z 2732 error gyp info spawn args   'build',
2021-12-08T07:13:24.6486449Z 2732 error gyp info spawn args   '-Goutput_dir=.'
2021-12-08T07:13:24.6486862Z 2732 error gyp info spawn args ]
2021-12-08T07:13:24.6588977Z 2732 error gyp verb command build []
2021-12-08T07:13:24.6589648Z 2732 error gyp verb build type Release
2021-12-08T07:13:24.6590205Z 2732 error gyp verb architecture x64
2021-12-08T07:13:24.6591041Z 2732 error gyp verb node dev dir /home/vsts/.node-gyp/16.13.0
2021-12-08T07:13:24.6591654Z 2732 error gyp verb `which` succeeded for `make` /usr/bin/make
2021-12-08T07:13:24.6592219Z 2732 error gyp info spawn make
2021-12-08T07:13:24.6592989Z 2732 error gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
2021-12-08T07:13:24.6594021Z 2732 error ../src/libsass/src/cencode.c: In function ‘base64_encode_block’:
2021-12-08T07:13:24.6595079Z 2732 error ../src/libsass/src/cencode.c:48:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
2021-12-08T07:13:24.6595742Z 2732 error    48 |    result = (fragment & 0x003) << 4;
2021-12-08T07:13:24.6596247Z 2732 error       |    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
2021-12-08T07:13:24.6596736Z 2732 error ../src/libsass/src/cencode.c:52:2: note: here
2021-12-08T07:13:24.6597222Z 2732 error    52 |  case step_B:
2021-12-08T07:13:24.6597905Z 2732 error       |  ^~~~
2021-12-08T07:13:24.6598749Z 2732 error ../src/libsass/src/cencode.c:62:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
2021-12-08T07:13:24.6599382Z 2732 error    62 |    result = (fragment & 0x00f) << 2;
2021-12-08T07:13:24.6599886Z 2732 error       |    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
2021-12-08T07:13:24.6600391Z 2732 error ../src/libsass/src/cencode.c:66:2: note: here
2021-12-08T07:13:24.6601149Z 2732 error    66 |  case step_C:
2021-12-08T07:13:24.6601913Z 2732 error       |  ^~~~
2021-12-08T07:13:24.6602869Z 2732 error ../src/libsass/src/functions.cpp: In function ‘void Sass::Functions::handle_utf8_error(const Sass::ParserState&, Sass::Backtraces)’:
2021-12-08T07:13:24.6604725Z 2732 error ../src/libsass/src/functions.cpp:110:20: warning: catching polymorphic type ‘class utf8::invalid_code_point’ by value [-Wcatch-value=]
2021-12-08T07:13:24.6605674Z 2732 error   110 |       catch (utf8::invalid_code_point) {
2021-12-08T07:13:24.6606223Z 2732 error       |                    ^~~~~~~~~~~~~~~~~~
2021-12-08T07:13:24.6607386Z 2732 error ../src/libsass/src/functions.cpp:114:20: warning: catching polymorphic type ‘class utf8::not_enough_room’ by value [-Wcatch-value=]
2021-12-08T07:13:24.6608495Z 2732 error   114 |       catch (utf8::not_enough_room) {
2021-12-08T07:13:24.6609713Z 2732 error       |                    ^~~~~~~~~~~~~~~
2021-12-08T07:13:24.6610753Z 2732 error ../src/libsass/src/functions.cpp:118:20: warning: catching polymorphic type ‘class utf8::invalid_utf8’ by value [-Wcatch-value=]
2021-12-08T07:13:24.6611760Z 2732 error   118 |       catch (utf8::invalid_utf8) {
2021-12-08T07:13:24.6612320Z 2732 error       |                    ^~~~~~~~~~~~
2021-12-08T07:13:24.6613228Z 2732 error ../src/libsass/src/json.cpp: In function ‘char* json_encode_string(const char*)’:
2021-12-08T07:13:24.6614866Z 2732 error ../src/libsass/src/json.cpp:405:15: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=]
2021-12-08T07:13:24.6615600Z 2732 error   405 |   catch (std::exception) {
2021-12-08T07:13:24.6616264Z 2732 error       |               ^~~~~~~~~
2021-12-08T07:13:24.6617267Z 2732 error ../src/libsass/src/json.cpp: In function ‘char* json_stringify(const JsonNode*, const char*)’:
2021-12-08T07:13:24.6618790Z 2732 error ../src/libsass/src/json.cpp:424:15: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=]
2021-12-08T07:13:24.6619532Z 2732 error   424 |   catch (std::exception) {
2021-12-08T07:13:24.6620060Z 2732 error       |               ^~~~~~~~~
2021-12-08T07:13:24.6620905Z 2732 error In file included from /home/vsts/.node-gyp/16.13.0/include/node/v8.h:30,
2021-12-08T07:13:24.6621999Z 2732 error                  from /home/vsts/.node-gyp/16.13.0/include/node/node.h:63,
2021-12-08T07:13:24.6622766Z 2732 error                  from ../node_modules/nan/nan.h:56,
2021-12-08T07:13:24.6623301Z 2732 error                  from ../src/binding.cpp:1:
2021-12-08T07:13:24.6624223Z 2732 error /home/vsts/.node-gyp/16.13.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
2021-12-08T07:13:24.6625731Z 2732 error /home/vsts/.node-gyp/16.13.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
2021-12-08T07:13:24.6626531Z 2732 error   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2021-12-08T07:13:24.6627169Z 2732 error       |                                      ^~~~~~~~~~~
2021-12-08T07:13:24.6628053Z 2732 error       |                                      remove_cv
2021-12-08T07:13:24.6629253Z 2732 error /home/vsts/.node-gyp/16.13.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’?
2021-12-08T07:13:24.6630120Z 2732 error   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2021-12-08T07:13:24.6630776Z 2732 error       |                                      ^~~~~~~~~~~
2021-12-08T07:13:24.6631354Z 2732 error       |                                      remove_cv
2021-12-08T07:13:24.6632603Z 2732 error /home/vsts/.node-gyp/16.13.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid
2021-12-08T07:13:24.6633372Z 2732 error   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2021-12-08T07:13:24.6633988Z 2732 error       |                                                  ^
2021-12-08T07:13:24.6635100Z 2732 error /home/vsts/.node-gyp/16.13.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
2021-12-08T07:13:24.6636049Z 2732 error   492 |             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
2021-12-08T07:13:24.6636774Z 2732 error       |                                                               ^~~~~~~
2021-12-08T07:13:24.6637687Z 2732 error In file included from ../src/binding.cpp:1:
2021-12-08T07:13:24.6638779Z 2732 error ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
2021-12-08T07:13:24.6640353Z 2732 error ../node_modules/nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
2021-12-08T07:13:24.6641329Z 2732 error  2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
2021-12-08T07:13:24.6642502Z 2732 error       |                                                              ^
2021-12-08T07:13:24.6643472Z 2732 error ../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-12-08T07:13:24.6646287Z 2732 error ../src/binding.cpp:284:98: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
2021-12-08T07:13:24.6647650Z 2732 error   284 |     int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
2021-12-08T07:13:24.6649355Z 2732 error       |                                                                                                  ^~~~~~~~~~~~
2021-12-08T07:13:24.6650966Z 2732 error ../src/binding.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE render_file(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-12-08T07:13:24.6652677Z 2732 error ../src/binding.cpp:320:98: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
2021-12-08T07:13:24.6653957Z 2732 error   320 |     int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
2021-12-08T07:13:24.6654765Z 2732 error       |                                                                                                  ^~~~~~~~~~~~
2021-12-08T07:13:24.6655409Z 2732 error In file included from ../node_modules/nan/nan.h:56,
2021-12-08T07:13:24.6655956Z 2732 error                  from ../src/binding.cpp:1:
2021-12-08T07:13:24.6656507Z 2732 error ../src/binding.cpp: At global scope:
2021-12-08T07:13:24.6658080Z 2732 error /home/vsts/.node-gyp/16.13.0/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
2021-12-08T07:13:24.6660025Z 2732 error   821 |       (node::addon_register_func) (regfunc),                          \
2021-12-08T07:13:24.6660673Z 2732 error       |                                           ^
2021-12-08T07:13:24.6661946Z 2732 error /home/vsts/.node-gyp/16.13.0/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
2021-12-08T07:13:24.6662679Z 2732 error   855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
2021-12-08T07:13:24.6663407Z 2732 error       |   ^~~~~~~~~~~~~
2021-12-08T07:13:24.6664459Z 2732 error ../src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
2021-12-08T07:13:24.6665119Z 2732 error   358 | NODE_MODULE(binding, RegisterModule);
2021-12-08T07:13:24.6665614Z 2732 error       | ^~~~~~~~~~~
2021-12-08T07:13:24.6666212Z 2732 error make: *** [binding.target.mk:133: Release/obj.target/binding/src/binding.o] Error 1
2021-12-08T07:13:24.6666808Z 2732 error gyp ERR! build error
2021-12-08T07:13:24.6667363Z 2732 error gyp ERR! stack Error: `make` failed with exit code: 2
2021-12-08T07:13:24.6668336Z 2732 error gyp ERR! stack     at ChildProcess.onExit (/home/vsts/work/1/s/node_modules/node-gyp/lib/build.js:262:23)
2021-12-08T07:13:24.6669123Z 2732 error gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
2021-12-08T07:13:24.6669866Z 2732 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
2021-12-08T07:13:24.6670771Z 2732 error gyp ERR! System Linux 5.11.0-1021-azure
2021-12-08T07:13:24.6671954Z 2732 error gyp ERR! command "/usr/local/bin/node" "/home/vsts/work/1/s/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
2021-12-08T07:13:24.6673270Z 2732 error gyp ERR! cwd /home/vsts/work/1/s/node_modules/node-sass
2021-12-08T07:13:24.6674020Z 2732 error gyp ERR! node -v v16.13.0
2021-12-08T07:13:24.6674744Z 2732 error gyp ERR! node-gyp -v v3.8.0
2021-12-08T07:13:24.6675253Z 2732 error gyp ERR! not ok
2021-12-08T07:13:24.6675722Z 2732 error Build failed with error code: 1
2021-12-08T07:13:24.6676359Z 2733 verbose exit 1
2021-12-08T07:13:24.6676629Z 
2021-12-08T07:13:24.6709877Z ##[error]Error: Npm failed with return code: 1
2021-12-08T07:13:24.6725260Z ##[section]Finishing: Run npm install

Running on an earlier version of Node.js by adding a NodePool task to the Pipeline file to use 14.x version seems to fix the build error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.