about the The stockData
property includes the stock
symbol as a string, the price
as a number, and likes
as a number.It always shows as error .i have been trying to fix it for days but still the same error here is a link to my code in github please help me so i can move on
Your code is passing for me as well.
As an aside, I would probably suggest using something a little more modern than the XMLHttpRequest package you are using. Node has fetch now, or you can use the node-fetch package.
i m using ngrok because i dont know how to make a live link for my project but the project is runnig great just when i use it to verify my work the freecodecamp tests always gives me an error wich is the stockData
property includes the stock
symbol as a string, the price
as a number, and likes
as a number.
thank you i have changed it it is now using node ftech but still same error the freecodecamp test always gives me the error the stockData
property includes the stock
symbol as a string, the price
as a number, and likes
as a number.
In wich i dont know if it find the stock data as an array or what
no it works fine when i m using my localhost the tests are runnig fine and everything even when i console.log the stockdata here what i get [
{ stock: ‘GOOG’, price: 122.78, rel_likes: 0 },
{ stock: ‘MSFT’, price: 326.07, rel_likes: 0 }
] wich shows that the stock data is composed of a string and two numbers
thank you i will find how to resolve it and say if it worked out
thank you so much
ok i will do it with replit
thank you
sorry for bothering you again after redeploing my code on replit and not changing the code i got this error
where before it was not showing
Have you set NODE_ENV to “test” at replit ?
Tools → Secrets
Try apply the solution in this thread, i encountered it today also
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.