Advertisement
iko1133

Error on setting change

Mar 16th, 2024
764
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.21 KB | Source Code | 0 0
  1. {
  2.     "config": {
  3.         "adapter": ["xhr", "http"],
  4.         "baseURL": "https://devheyeyapi.azurewebsites.net/api/",
  5.         "data": "{\"settingId\":1,\"value\":\"false\"}",
  6.         "env": {
  7.             "Blob": [Function Blob],
  8.             "FormData": [Function FormData]
  9.         },
  10.         "headers": [Object],
  11.         "maxBodyLength": -1,
  12.         "maxContentLength": -1,
  13.         "method": "put",
  14.         "timeout": 0,
  15.         "transformRequest": [
  16.             [Function transformRequest]
  17.         ],
  18.         "transformResponse": [
  19.             [Function transformResponse]
  20.         ],
  21.         "transitional": {
  22.             "clarifyTimeoutError": false,
  23.             "forcedJSONParsing": true,
  24.             "silentJSONParsing": true
  25.         },
  26.         "url": "users/10/settings/1",
  27.         "validateStatus": [Function validateStatus],
  28.         "xsrfCookieName": "XSRF-TOKEN",
  29.         "xsrfHeaderName": "X-XSRF-TOKEN"
  30.     },
  31.     "data": {
  32.         "Message": "The property 'UserSetting.UserId' is part of a key and so cannot be modified or marked as modified. To change the principal of an existing entity with an identifying foreign key, first delete the dependent and invoke 'SaveChanges', and then associate the dependent with the new principal.",
  33.         "StatusCode": 500
  34.     },
  35.     "headers": {
  36.         "cache-control": "no-cache,no-store",
  37.         "content-type": "application/json",
  38.         "date": "Sat, 16 Mar 2024 22:19:08 GMT",
  39.         "expires": "-1",
  40.         "pragma": "no-cache",
  41.         "server": "Microsoft-IIS/10.0",
  42.         "x-powered-by": "ASP.NET"
  43.     },
  44.     "request": {
  45.         "DONE": 4,
  46.         "HEADERS_RECEIVED": 2,
  47.         "LOADING": 3,
  48.         "OPENED": 1,
  49.         "UNSENT": 0,
  50.         "_aborted": false,
  51.         "_cachedResponse": undefined,
  52.         "_hasError": false,
  53.         "_headers": {
  54.             "accept": "application/json",
  55.             "authorization": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImViYzIwNzkzNTQ1NzExODNkNzFjZWJlZDI5YzU1YmVmMjdhZDJjY2IiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vZGV2aGV5ZXkiLCJhdWQiOiJkZXZoZXlleSIsImF1dGhfdGltZSI6MTcwOTkwODU1NiwidXNlcl9pZCI6IldLQUpreFQwV0tkQkdlZmRFU3F4NTdQNVNmYjIiLCJzdWIiOiJXS0FKa3hUMFdLZEJHZWZkRVNxeDU3UDVTZmIyIiwiaWF0IjoxNzEwNjI1MDQ2LCJleHAiOjE3MTA2Mjg2NDYsImVtYWlsIjoiZGVtbzIwQGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6eyJlbWFpbCI6WyJkZW1vMjBAZ21haWwuY29tIl19LCJzaWduX2luX3Byb3ZpZGVyIjoicGFzc3dvcmQifX0.N75rCFV3RXistg6yaxAf4Tb4WFpj93vUE1gVvZmr5MKRdOkZ-LoRbQm0OhDq1FPpXAQ8QqdpnOpTZfyrHQlm3gmY4UeXxYsLFyo6M4w9ToMMH1idRdS80ESJWlkstUmhOb3xDgKtC1HL5PrLqWdpgYY90CTGhHy7reaxrmxHJvRov1IUIXm3hqY7ziPDALbm6WOJSARYtF_IyOy1edylfDLAH_rkYjqNNc6dpziKsOtyF7-gaelnRTvgqRxdSBbl7W2tTYhhyhIVOV-zD-2bfoX_pOYRPVJnrGpYwnai5fgyoWQ1QVpLfkOKWnB7ZmI5p7ETZ9bmdk9LdwkZ33EWmQ",
  56.             "content-type": "application/json-patch+json",
  57.             "x-requested-with": "XMLHttpRequest"
  58.         },
  59.         "_incrementalEvents": false,
  60.         "_lowerCaseResponseHeaders": {
  61.             "cache-control": "no-cache,no-store",
  62.             "content-type": "application/json",
  63.             "date": "Sat, 16 Mar 2024 22:19:08 GMT",
  64.             "expires": "-1",
  65.             "pragma": "no-cache",
  66.             "server": "Microsoft-IIS/10.0",
  67.             "x-powered-by": "ASP.NET"
  68.         },
  69.         "_method": "PUT",
  70.         "_perfKey": "network_XMLHttpRequest_https://devheyeyapi.azurewebsites.net/api/users/10/settings/1",
  71.         "_performanceLogger": {
  72.             "_closed": false,
  73.             "_extras": [Object],
  74.             "_pointExtras": [Object],
  75.             "_points": [Object],
  76.             "_timespans": [Object]
  77.         },
  78.         "_requestId": null,
  79.         "_response": "{\"StatusCode\":500,\"Message\":\"The property \\u0027UserSetting.UserId\\u0027 is part of a key and so cannot be modified or marked as modified. To change the principal of an existing entity with an identifying foreign key, first delete the dependent and invoke \\u0027SaveChanges\\u0027, and then associate the dependent with the new principal.\"}",
  80.         "_responseType": "",
  81.         "_sent": true,
  82.         "_subscriptions": [],
  83.         "_timedOut": false,
  84.         "_trackingName": "unknown",
  85.         "_url": "https://devheyeyapi.azurewebsites.net/api/users/10/settings/1",
  86.         "readyState": 4,
  87.         "responseHeaders": {
  88.             "Cache-Control": "no-cache,no-store",
  89.             "Content-Type": "application/json",
  90.             "Date": "Sat, 16 Mar 2024 22:19:08 GMT",
  91.             "Expires": "-1",
  92.             "Pragma": "no-cache",
  93.             "Server": "Microsoft-IIS/10.0",
  94.             "x-powered-by": "ASP.NET"
  95.         },
  96.         "responseURL": "https://devheyeyapi.azurewebsites.net/api/users/10/settings/1",
  97.         "status": 500,
  98.         "timeout": 0,
  99.         "upload": {},
  100.         "withCredentials": true
  101.     },
  102.     "status": 500,
  103.     "statusText": undefined
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement