The given data was invalid React and Commerce JS - reactjs

I am currently following a tutorial on how to build a web commerce website (His GitHub: https://github.com/adrianhajdin/project_e_commerce) and I am getting this error when submitting data:
and looking at the response I see this:
I haven't got a clue what this means and been stuck for at least 3 hours trying to fix this.
The stripe payment is actually logging it as a successful logs.
But within Commerce JS it detects the errors:

Check the information of the orderData object, something must have been misspelled, as suggested by the error "The given data was invalid".
In my case the problem was that the instructor indicated to access the property of the shippingObject as "address1", but I had that property defined as "address" without the number 1, enough to give me a delay of 20+ minutes, watch out for that and check carefully your orderData object

Related

Debugging Firebase Authentication in react

My sign in with firebase authentication completes successfully. I am using signInWithPopup. It returns a blank screen but does not break the flow. However after logging in, a message appears in my console. The message is :
A boolean is being passed as a fourth parameter to window.open. This is not used and may cause an exception in a future release.
How do I handle this exception?
The second part of the question is what data in response(that we get in promise from firebase sign in with popup) correlates with the above mentioned exception? Is it a completely different problem or does it have anything to do with the blank popup? Thank you in advance. If more information is needed to solve the problem, kindly say so.
This may be a newly introduced bug with Firebase and one of its dependencies. I suggest rolling Firebase to a previous and consistent version for Firebase and its sister modules
Source:
https://github.com/firebase/firebase-js-sdk/issues/4988

I could not finish a watson studio setup , I keep getting error messages "can not read property 'language_info' undefined

I was trying to set up a watson studio , but I keep getting error message that says 'can not read property 'language_info' undefined'
Same issue for a course project. No one else has seemed to encounter it.
I changed the URL I was using to http from https and it worked. This could be the solution, or I just needed to back up and try it again.
In case it saves someone a bit of time:
I ran into the same issue in the Assignment 2 of the class "Fundamentals of Scalable Data Science". The reason is that the URL we had to import as Notebook is not the first one that appears in the instructions, as it was in Assignment 1. The URL to be imported was lower on the page.
Long story short: You may be importing the wrong URL.

Trailhead Error : unable to complete the trailhead assignment although all criteria are fulfilled

I am getting the following error while completing the following trail.
Challenge Not yet complete...
Here's what's wrong:
The 'Lightning Adoption Dashboard - Lightning' dashboard contains at least one of the components that were required to be removed'
I have done the following steps:
Installed the app.
Removed all the components except for All Users: Using Lightning and # Users That Can't Use Lightning by Profile.
Here is an image of the problem:

Meteor - React - Mongo project will not fetch or flash immediatly

I am just getting started with my project using Meteor/React & MongoDB.
I have pushed my code to below URL:
https://github.com/msc/soccer-app
I have from which insert player name into MongoDB, the insert part seems working fine and return the id and then route to the main page, on that section I do console.log from fetch method, it shows the record has been fetch, but immediately shows another console.log with empty array.
I do not have any error on console or terminal. someone can let me know which part I am doing wrong?
Here is the output of my browser log
Console Log
[Object as soon as insert into MongoDB and then flash][2]
You should go through the tutorial again, if im not mistaken that is a tutorial from Lynda.com right? (I took it myself like 2 weeks ago) Emmanuel Henri's work I found to be very complete.
As for your problem looking at the console it looks like you need to adjust your schema to allow for the createdAt value.
Like isreal.zinc said, you should post the code you are having issues with, people generally are not going to want to dig through an entire codebase.

Piwik, Export count of page visits for a specific url

I Make artificial page views with javascript on my website using javascript, because I need to track them later
piwikTracker.trackPageView('/lid/902095/website');
I need to be able to export how many times the above code was executed, i.e. how many times /lid/902095/website was visited, so that I can show some stats on my website, however I'm not sure what my query to the API should be, here is my attempt:
?module=API&method=Actions.getExitPageUrls&idSite=2&period=day&date=today&format=JSON&token_auth=anonymous&segment=pageUrl=#%2Flid%2F902095%2Fwebsite
It returns an error at this time "Error: The report 'VisitsSummary_CoreMetrics' was requested but it is not available at this stage. You may also disable the related plugin to avoid this error."
I don't see a plugin with that name in plugins section, my active plugins are "Actions, Dashbord, DoNotTrack, ExampleAPI, ExamplePlugin, Live, Login, Widgetize"
Not sure if this is the right query to send to the API or not, any help is appreciated.
If you want to track the visits use this api call
?module=API&method=VisitsSummary.getVisits&idSite=2&period=day&date=today&format=json&token_auth=anonymous
by default VisitsSummary plugin is provided
Piwik Web Essentials is a good book for reference.

Resources