vCD HTML5 UI - Editing rights bundle fails with " Unexpected token < in JSON at position 0 "



If you have come across an error message similar to the below in the vCD HTML5 UI, the issue is due to the large payload on the load balancer

Unexpected token < in JSON at position 0



Browser console has the below error :

Failed to load resource: the server responded with a status of 502 (Bad Gateway)
service-provider.bundle.js:1 Unsupported REST exception RightsComponent#rights SyntaxError: Unexpected token < in JSON at position 0
  at JSON.parse (<anonymous>)
  at CatchSubscriber.selector (service-provider.bundle.js:1)
  at CatchSubscriber.error (vendor.bundle.js:991)
  at XMLHttpRequest.s (vendor.bundle.js:830)
  at ZoneDelegate.invokeTask (vendor.bundle.js:1040)
  at Object.onInvokeTask (vendor.bundle.js:457)
  at ZoneDelegate.invokeTask (vendor.bundle.js:1040)
  at Zone.runTask (vendor.bundle.js:1040)
  at ZoneTask.invokeTask [as invoke] (vendor.bundle.js:1040)
  at p (vendor.bundle.js:1012)


Action Plan:

In my case, I am using NSX Edge Load balancer

PUT https://<NSX-IP>/api/4.0/edges/<edge-id>/systemcontrol/config
<systemControl>
 <property>lb.global.tune.http.maxhdr=1024</property>
 <property>lb.global.tune.bufsize=1048576</property>
 <property>lb.global.tune.maxrewrite=16384</property>
</systemControl>


Sending the above call increases Edge LB buffer size above the default 32 KB. This will fix this issue. 

Hope this helps :) 

Comments

  1. What is the most popular sport to bet on in college sports?
    Sportsbooks use the 서산 출장마사지 spread and total to inform how much they 토토사이트 are 김해 출장마사지 likely to win. 전라북도 출장마사지 The most common sports to bet 강원도 출장샵 on in college sports:

    ReplyDelete

Post a Comment

Popular posts from this blog

vCloud director 9.7 appliance deployment step by step guide

How to Install and Uninstall Guest agent for vRA Windows machines

VM console fails to connect - vCloud director 9.7