amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Urgent Please help : Maximum number of bindings reached (1000).

Open leonahliang90 opened this issue 8 years ago • 10 comments

hey guys, we are hitting this error message image

Steps to reproduce the error:

  1. Please visit : https://m.aliexpress.com/wholesale/dress.html
  2. Open up the Refine
  3. Choose Ship To from the list, select any country and should be hitting the maximum bindings within 1 or 2 selections.

ezgif com-video-to-gif 1

This Ship To Country List is a combination of 2 lists:

  1. we use Java foreach to render for the Popular Country List.
  2. we then use amp-list to fetch and render the remaining Country List based on Alphabetical Orders. Here is our coding (copy from page source alt + cmd + U) :
<amp-list credentials="include" layout="fixed-height" src="https://m.aliexpress.com/api/countries/sorted" height="400" width="auto" items="data">
    <template type="amp-mustache">
        <p class="ship-to-title country-category">{{group}}</p>
        {{#countryList}}
        <div class="category-box">
            <p role="button" tabindex="-1" 
             on="tap: AMP.setState({
                refineState: {
                    shipToCountry: '{{code}}'
                },
                shipTo: '{{name}}'
            }),ship-to-wrap.hide, category-wrap.show, attribute-syn.hide, attribute-asyn.show, other-refine-wrap.show, form-filter.submit">
                <span>
                    <span [class]="'{{code}}' ? 'country-flag mright c_{{code}}' : ''"></span>
                    <span>{{name}}</span>
                </span>
                <input type="radio" name="shipTo">
                <span class="radio-button" [class]="(refineState.shipToCountry == '{{code}}') ? 'radio-button active' : 'radio-button'"></span>
            </p>
        </div>
        {{/countryList}}
    </template>
</amp-list>

It is just a simple amp-list which fetches data and render with amp-mustache.

FYI, we are a global website aims to deliver goods to our buyer across the world, and this filter Ship To really means a lot to us and our buyers, really do appreciate your guys assistance on this ASAP. Thank you guys.

@choumx @aghassemi

leonahliang90 avatar Jun 12 '18 13:06 leonahliang90

/to @choumx (let's patch along with https://github.com/ampproject/amphtml/issues/15907) /cc @adelinamart @cathyxz

aghassemi avatar Jun 12 '18 14:06 aghassemi

This was released in RTV 1527809694656 ~12 days ago on 5/31. The behavior changed in #15517 as a fix for #11434.

#15519 should fix this. Other things to investigate include why we aren't seeing these in our error logging and how to make these errors more meaningful on complex pages.

@leonalicious When did you start seeing this issue? Have those pages changed in the last couple weeks?

dreamofabear avatar Jun 12 '18 15:06 dreamofabear

hey, thank you for the prompt reply, the business logic of the refine part has not been updated since February so as the code. I only found this error today, I read the changelog of #15517 and this caught my attention Rework 1000 binding limit to only apply to initial DOM scan

based on it, i notice if i am new to the page, and i go directly and select Ship To, BOOM the error triggered. However, if i go and play around with other Refine properties first, such as few rounds of Category and Attributes selection, and lastly go and select Ship To, everything just works fine. My gut feeling is telling me something is going on with that changes.

leonahliang90 avatar Jun 12 '18 15:06 leonahliang90

Thanks for the explanation. Based on the context, I'm going to downgrade to P1. I have a potential fix coming up and I'll make sure it gets into canary cut today for testing.

dreamofabear avatar Jun 12 '18 15:06 dreamofabear

OMG, I might be wrong !

anyway, looking forward to the solution, please get us updated on this. Thx in advanced !

leonahliang90 avatar Jun 12 '18 16:06 leonahliang90

OMG, I might be wrong !

Please elaborate. 😄

dreamofabear avatar Jun 12 '18 17:06 dreamofabear

image image

are there any ways we might get notified with this also ?

leonahliang90 avatar Jun 13 '18 11:06 leonahliang90

This may help: https://www.ampproject.org/docs/reference/components/amp-analytics#error-trigger

dreamofabear avatar Jun 13 '18 15:06 dreamofabear

What did you mean by "I might be wrong"?

dreamofabear avatar Jun 13 '18 16:06 dreamofabear

There are things I don't know , so I might be wrong with my wild understanding on the changes . You know better for sure.

leonahliang90 avatar Jun 13 '18 17:06 leonahliang90