Git Product home page Git Product logo

Comments (10)

sitereactor avatar sitereactor commented on September 25, 2024

Hi @kevlarAdmin quick question before we look into the issue. Which version of the nodejs leadless library do you use? I'm asking because we just released a version yesterday, which includes some changes around client side support for fetch.

from umbraco.headless.client.nodejs.

kevlarAdmin avatar kevlarAdmin commented on September 25, 2024

Hi @sitereactor,
I missed that an update occurred so i updated to the latest "@umbraco/headless-client": "^0.4.0", but a new problem occurred then.

Please look above at the new problem.

from umbraco.headless.client.nodejs.

sitereactor avatar sitereactor commented on September 25, 2024

Can you post the snippet of code you are using, so we can try to replicate?

from umbraco.headless.client.nodejs.

sitereactor avatar sitereactor commented on September 25, 2024

On second thought, is your project from early access? We pushed an update out yesterday, but as many early access projects expired yesterday we didn't update those.
If you post the alias you are using I can double check if its a version mismatch.

from umbraco.headless.client.nodejs.

kevlarAdmin avatar kevlarAdmin commented on September 25, 2024

Hi @sitereactor dont think it should be. created a demo account for 14 days.
I added you to the project and you find the alias in "Umbraco-Headless/headless-app/src/app/home/home.component.ts"

from umbraco.headless.client.nodejs.

sitereactor avatar sitereactor commented on September 25, 2024

Alright...I checked your project and it is up-to-date, and I checked the root content via Postman, which also worked fine. So we will have a look at the code you gave me access to and get back to you.

from umbraco.headless.client.nodejs.

sitereactor avatar sitereactor commented on September 25, 2024

We found that the nodejs library was setting the Api-Version header both via the Accept and Api-Version headers, so the server didn't know which version to use as one sent 2 and the other sent 2.1.

We'll fix this up now and release an update.

Thanks for submitting this! That was an oversight we hadn't noticed.

from umbraco.headless.client.nodejs.

rasmusjp avatar rasmusjp commented on September 25, 2024

Hi @kevlarAdmin

We've just released a new version on NPM that fixes the problem. Can you try upgrading and see if that helps?

Thanks

from umbraco.headless.client.nodejs.

kevlarAdmin avatar kevlarAdmin commented on September 25, 2024

Hi @sitereactor @rasmusjp , It works.

Thanks a lot for the help šŸ‘

from umbraco.headless.client.nodejs.

sitereactor avatar sitereactor commented on September 25, 2024

Perfect! Happy to hear that šŸ˜„

from umbraco.headless.client.nodejs.

Related Issues (11)

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.