Hi Zachary,
but if authentication has been left in the server, would curl have worked?
>>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to a
>From the error on the grails side (the API side), it appears to think the
request header is incorrect. So is it possible that Angular is not sending
the correct header? But I am confused that Grails accepts the request, does
everything it should do like get data and then decides the request hea
Just to add, I have found this
http://tomcat.10.x6.nabble.com/How-to-write-a-correct-HTTP-request-to-Tomcat-8-5-4-instance-td5054729.html
in summary, it wonders if the correct end of line is being sent.
I was running beta16 of angular2 and then upgraded to beta32 and now 1.rc4.
And these problems
Looking through the grails log, I see the following.
The request from the browser is being picked up
24 Mar 2017;09:50:40.737 DEBUG org.apache.coyote.http11.Http11InputBuffer -
Received [GET /heroes?max=15 HTTP/1.1^M
Host: centos64:8080^M
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:
Well Sander and Kyle, any ideas? I suspect this is something unique to me
(ie have I done something dumb) but the problem I have is how to debug
this. I can debug on the server side and see that data is being found (and
in the past, if it is cors, then the data is not retrieved by the
server, t
Hi Sander,
I am not convinced that it is a CORS issue for a few reasons.
I did have CORS issues to begin with and the message in the browser console
always mentioned "CORS".
Also Grails 3.x.x (I forget the exact version) has built in CORS. And
looking at the grails logs, it is quite happily getti
Hi Kyle,
the curl command is
C:\Temp\curl>curl http://centos64:8080/heroes
[{"id":1,"city":"Metropolis","flight":true,"invulnerable":false,"name":"Mr.
Nice","strength":false},{"id":2,"city":"Reading","flight":false,"invulnerable":false,"na
etc etc etc
And this is the original code from the her
Hi,
I have a grails rest api server. This returns data when I use curl.
I have used the angular 2 heroes application to display this data. This was
working and then I added authentication and it stopped working. I have
returned to the pre authentication set up and I still get the same errors.
I h
And now it works .
>
>
>>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to angular+unsubscr...@googlegroups.com.
To post to this group, s
So from what I can see the folder is being kept open by Search Protocol
Host.
A few weeks back I included my angular folders in the indexing options for
search. It then created the index which took a few hours. And I thought
that would be it. But what I *think* is happening is that when new thi
>
> EPERM: operation not permitted, rename
> 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\.staging\rxjs-67f86bc0'
>
> -> 'C:\Temp\angularjs_example\angular2\heroes2\node_modules\rxjs'
>
So I did this manually in file explorer - moved the rxjs-67f86bc0 folder
into node_modules. An
>
> Thanks Sander. I actually I did try it earlier and reinstalled but still
> same problem. I will update the original topic on this problem because
> there is something you may know about.
>
John
--
You received this message because you are subscribed to the Google Groups
"Angular and Angu
Hi,
I am unable to create a new project (ng new). It fails with permissions
problems on the above folder.
I have reinstalled / upgraded via the instructions in the wiki but same
problem.
Is it safe to delete this folder?
Regards,
John
--
You received this message because you are subscribed to t
>
> Just to add, if I create a new project, I get exactly the same problem.
> Interestingly the command tries to rename files it has already created in
> the new projects node_modules folder eg
>
npm ERR! Error: EPERM: operation not permitted, rename
'C:\Temp\angularjs_example\angular2\heroe
>
> Hi Sander,
>
followed the instructions - uninstalled global, installed global latest,
installed in existing project having removed node_modules and exactly the
same result.
At end of npm install --save-dev @angular/cli@latest, I got the same EPERM
-4048 error.
Same result if I run in admin
Hi,
not sure what event has caused this but in the last few days my angular 2
installation on windows has gone badly wrong.
As an example running ng new proj-name gives the following (only last lines
shown)
(node:7180) Warning: Possible EventEmitter memory leak detected. 11 error
listeners adde
Hi,
I wanted to use the environment.ts and environment.prod.ts files to set
some variables.
I added a console.log to the service code to see if they were being set.
When I run ng serve, the code compiles and the browser console shows my
comment and the value is as expected; so far so good.
But w
So I possibly fixed it.
I created a new project and used the package.json file values in the
existing project's json file.
Then I removed node_modules and dist folders, rerun npm install --save-dev
@angular/cli@latest and npm install
and now ng serve works.
>
--
You received this message beca
ng --version
@angular/cli: 1.0.0-beta.32.3 [1.0.0-beta.31]
node: 6.9.5
os: win32 x64
@angular/common: 2.2.1
@angular/compiler: 2.2.1
@angular/core: 2.4.7
@angular/forms: 2.2.1
@angular/http: 2.2.1
@angular/platform-browser: 2.2.1
@angular/platform-browser-dynamic: 2.2.1
@angular/router: 3.2.1
@ang
Hi,
I have been amending the heroes tutorial and come across something that I
do not understand so hopefully some one can help.
In HeroesComponent.ts is this snippet of code
export class HeroesComponent implements OnInit {
heroes: Hero[];
selectedHero: Hero;
constructor(private router: Ro
Hi,
I have two domain types with a link between them. My data backend is Grails
and I have set this up and tested it using curl.
But I can't find any documentation on how to reflect this in the angular 2
client.
Could someone point me in the direction of this?
Regards,
John
--
You received this
I think this may have something to do with using console.log in the wrong
place. But really not sure.
>
--
You received this message because you are subscribed to the Google Groups
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to angular+uns
Hi,
I started with the heroes tutorial and have changed the "add hero" code to
a form. I do realise that from a controller perspective it would be far
better to have this as a separate component and html. And that is fine.
But when I run the current page (form plus a loop of ngFor), the form is
Hi Sander,
the service code is
create(name: string): Promise {
return this.http
.post(this.heroesUrl, JSON.stringify({name: name}), {headers: this.
headers})
.toPromise()
.then(res => res.json().data)
.catch(this.handleError);
}
and you were right - it is the service code. I retur
Hi,
I have used the heroes tutorial and when using in memory this works.
But if I get the data from an external source eg grails 3 rest api then
adding a hero behaves differently.
The hero is added to the database (I can see that via curl) but the listing
of heroes has a place holder for the new
Hi Sander,
yes that did help, getting rid of the data part.. I think there was a
problem with a change in angular so I upgraded. Unfortunately ng init is
not working in the new version so was unable to upgrade the application but
I recreated it from scratch and switching between in memory db and
I added the following console messages
getHeroes(): Promise {
return this.http.get(this.heroesUrl)
.toPromise()
.then(response => { console.log("service response text " +
response.statusText);
console.log("service response data " +
response.jso
Hi Sander,
I do not think it is a CORS issue because I did have CORS errors in the
browser debugger console. These stopped when I added a grails plugin for
the data server.
Because of the log messages from Tomcat, I do think that is doing its job
so the problem is somewhere inside the angular
Just to add, how can the URL be null when the there is a record in the
tomcat log showing a 200 response to a request?
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an em
>
> Hi Sander,
>
I do not think it is a CORS issue because I did have CORS errors in the
browser debugger console. These stopped when I added a grails plugin for
the data server.
Because of the log messages from Tomcat, I do think that is doing its job
so the problem is somewhere inside the ang
Hi,
Using the Heroes tutorial on the Angular 2 website. I have set up the
heroService to use a rest service from tomcat. Using curl produces the
correct result
C:\Temp\curl>curl http://centos7-ansible:8080/heroes/heroes
[{"id":1,"name":"Mr.
Nice"},{"id":2,"name":"Narco"},{"id":3,"name":"Bomba
So the "standard" way would be a data backend providing REST running in one
application and the angular 2 app being packaged up and run as another
application?
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and
Hi,
going through the tutorial. If I wanted to use a real web server to supply
data (rather than the InMemoryDataService), would all I have to do is
change the heroesURL value to something like fred dot com?
Regards,
John
--
You received this message because you are subscribed to the Google Gro
Hi,
new to angular. I was wondering how to deploy an angular app to a web
server? Is there documentation on this.
I have experience with Java and Tomcat applications but not sure how it
works where all of the logic is in the front end.
Regards,
John
--
You received this message because you are
34 matches
Mail list logo