This is my mongoose schema
I have enter passwordChangedAt: in the postman but it is not showing
Here you can see passwordChangedAt is not showing
Even I can not acess decoded.iat
i was expecting normal working
Change this
PasswordChangeAt: Date
to
PasswordChangeAt: {type:Date};
Keep me updated
Related
I am implementing google OAuth and i am recieving the access_token and and id_token quite alright.
After sending a request to google's userinfo endpoint as shown in this image enter image description here
I am recieving a success from goole with this data type on the response data
enter image description here
A few months ago when i implemented this on a seperat project i got back an object and not i am getting this, whatevery it is.
Can anyone point me where i can research or convert this to an object using javascript?
I am expecting an Object and i have tried using the global Buffer method available on Nodejs and i keep getting enter image description here
I am trying to implement MEAN app for which I made node server
app.get("/posts",(req,res)=>{
posts=[{"title":"a","context":"b"},{"title":"c","context":"d"}]
res.send(posts); // tried even with res.status(200).json(posts)
});
when it checked with api tester it works well output snapshot
output snapshot with apitester
when i try to access with angular services
getposts()
{
var url='http://localhost:3000/posts';
this.http.get<post[]>(url).subscribe(data=>this.posts=data);
console.log(this.posts);
return this.posts;
}
when i do console.log(posts) it returning []
can someone please help i am struggling from last 2 days?
As you have not added the screenshot from the Browser's Inspector => Network Tab, I am guessing this answer will help you in case my guess is right.
Try setting the below in your front-end project (Angular in your case):
Try setting the below in your back-end project (Node in your case):
Also, verify your updates as in the below screengrab in the Browser's Inspector (Chrome in my case):
Please Note: - The mentioned response headers have special meaning, so kindly look for more info with a simple Google search. Use these settings during your development phase on localhost.
The connection details are correct.
I am able to successfully run a cosmos db "Query documents"
connector in the same logic app
while the "Get a document" connector is failing.
I used the same id in both connectors though to fetch the document!
Got the mistake!
Unfortunately, The document id I was trying to fetch contained double pipe ('||') Eg('123456||abc')
It was the reason I was getting the Unauthorized error!
The surprising thing is when I am able to insert/Query the documents using the same id, why can't I even fetch with the same id (containing double pipe)?
Anyways, updated the logic to change the id's and working fine now!
How do you access information about the current user when navigating an app with a CouchDB database? I need this information to query the correct data for each request, etc. For example, in Rails it is common to use a before filter that sets a variable called current_user with every request.
After successfully initiating a session with a POST to /_session, I tried the following as suggested by the CouchDB docs, but it does not return the full user document with email and the other fields I need.
GET /_session
I also tried requesting the user document by id as follows but I am getting an error.
GET /_users/org.couch.user:<name>
Error:
{ error: not_found, reason: missing }
Any help will be greatly appreciated.
I got this working by combining the two requests as follows:
GET '/_session'
GET '/_users/org.couch.user:' + responseFromFirst.userCtx.name
I am trying to create an app on foursquare. I do fill all the required fields. By submitting the app form will result in 400 bad request with no message in the browser.
However the Response looks like this:
{"meta":{"code":400,"errorType":"param_error","errorDetail":"Value is invalid for pushVersion"},"response":{}}
Can it be a bug on their side, or am I missing something?
Thanks
Was also just getting this error.... The pushVersion being posted to /v2/apps/create is blank and there is no visible user input for the field. The field is in the markup though so if you use Chrome dev tools or firebug you can find the version input's div wrapper and remove the style="display: none;", then fill in the field. I entered "20130115" and chose that I didn't want pushes and the app was created successfully.