Hello,

I have Foreman version 1.14.1 installed. I have a problem with updating 
settings on my Foreman. When I change a settings there is a waiting circle 
appearing and nothing happens. The settings after reloading the page is 
that same that before the change.

I''ve Inspect the Update command (javascript) that is executed to record 
the setting change and this is that I get:


Failed to load resource: the server responded with a status of 403 
(Forbidden)
settings:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.le.parseJSON (bundle-9671b40e053a06666c68.js:31)
    at HTMLSpanElement.error 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249)
    at t.<anonymous> 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323)
    at Object.r (bundle-9671b40e053a06666c68.js:19)
    at c (bundle-9671b40e053a06666c68.js:29)
    at Object.fireWith [as rejectWith] (bundle-9671b40e053a06666c68.js:29)
    at n (bundle-9671b40e053a06666c68.js:31)
    at XMLHttpRequest.t (bundle-9671b40e053a06666c68.js:31)
bundle-9671b40e053a06666c68.js:31 PUT 
https://vdcmanager.bpo.capgemini.com/settings/email_reply_address 403 
(Forbidden)
send @ bundle-9671b40e053a06666c68.js:31
ajax @ bundle-9671b40e053a06666c68.js:31
(anonymous) @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
save @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
e.saveWithUrlHook @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
submit @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
r @ bundle-9671b40e053a06666c68.js:19
dispatch @ bundle-9671b40e053a06666c68.js:30
v.handle @ bundle-9671b40e053a06666c68.js:29
settings:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.le.parseJSON (bundle-9671b40e053a06666c68.js:31)
    at HTMLSpanElement.error 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249)
    at t.<anonymous> 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323)
    at Object.r (bundle-9671b40e053a06666c68.js:19)
    at c (bundle-9671b40e053a06666c68.js:29)
    at Object.fireWith [as rejectWith] (bundle-9671b40e053a06666c68.js:29)
    at n (bundle-9671b40e053a06666c68.js:31)
    at XMLHttpRequest.t (bundle-9671b40e053a06666c68.js:31)
le.parseJSON @ bundle-9671b40e053a06666c68.js:31
error @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249
(anonymous) @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
r @ bundle-9671b40e053a06666c68.js:19
c @ bundle-9671b40e053a06666c68.js:29
fireWith @ bundle-9671b40e053a06666c68.js:29
n @ bundle-9671b40e053a06666c68.js:31
t @ bundle-9671b40e053a06666c68.js:31
bundle-9671b40e053a06666c68.js:31 PUT 
https://vdcmanager.bpo.capgemini.com/settings/email_reply_address 403 
(Forbidden)
send @ bundle-9671b40e053a06666c68.js:31
ajax @ bundle-9671b40e053a06666c68.js:31
(anonymous) @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
save @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
e.saveWithUrlHook @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
submit @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
r @ bundle-9671b40e053a06666c68.js:19
dispatch @ bundle-9671b40e053a06666c68.js:30
v.handle @ bundle-9671b40e053a06666c68.js:29
settings:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.le.parseJSON (bundle-9671b40e053a06666c68.js:31)
    at HTMLSpanElement.error 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249)
    at t.<anonymous> 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323)
    at Object.r (bundle-9671b40e053a06666c68.js:19)
    at c (bundle-9671b40e053a06666c68.js:29)
    at Object.fireWith [as rejectWith] (bundle-9671b40e053a06666c68.js:29)
    at n (bundle-9671b40e053a06666c68.js:31)
    at XMLHttpRequest.t (bundle-9671b40e053a06666c68.js:31)

Seams that API should return a JSON but it''s not... and the function 
cannot parse it....

I've tried to GET a JSON via API for a setting and it is returning a JSON 
that is OK. 

Any ideas who to solve this problem?

Best regards,
Pawel

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to