I've discovered that the mockup server will get stuck in an infinite loop (at line 136) if a POST request triggers adding a new member. This occurs under the following conditions:
When a POST is sent with no "Id" in the body, but a member at the URI exists with no number at the end. The regex on line 133 is unable to create a pattern template from the existing member, causing it to get stuck. This can occur easily when requesting a Session using the public-rackmount1 example schema:
When a POST is sent with an "Id" specified in the body that already exists in Member (that it can't template). This is less likely to happen as you usually wouldn’t POST with an "Id".
I created a PR to fix this (#100). It should always generate a unique "Id" whenever any Member is added, but also maintains previous functionality.
I've discovered that the mockup server will get stuck in an infinite loop (at line 136) if a POST request triggers adding a new member. This occurs under the following conditions:
When a POST is sent with no "Id" in the body, but a member at the URI exists with no number at the end. The regex on line 133 is unable to create a pattern template from the existing member, causing it to get stuck. This can occur easily when requesting a Session using the
public-rackmount1
example schema:When a POST is sent with an "Id" specified in the body that already exists in Member (that it can't template). This is less likely to happen as you usually wouldn’t POST with an "Id".
I created a PR to fix this (#100). It should always generate a unique "Id" whenever any Member is added, but also maintains previous functionality.