Hi,
I'm getting the following error message in the console when the api returns an error.
"You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable" and the error block does not get invoked.
This happens only in production build and is working perfectly in development build.
The following is the code in the service proxy
return this.http.request("get", url_, options_).pipe(observableMergeMap((response : any) => { return this.processGetUserAccountsToLink(response_); })).pipe(observableCatch((response: any) => { console.log("error",response_);
The console.log statement is not getting invoked.
The following is the response from the api.
{ "result": null, "targetUrl": null, "success": false, "error": { "code": 404, "message": "No client found with the supplied reference: qwerty", "details": null, "validationErrors": null }, "unAuthorizedRequest": false, "__abp": true }
We are trying to get the stateStorage and stateKey which are primeng tables but this is not working for us at all.
We have followed the guidelines outlined here - https://primefaces.org/primeng/showcase/#/table/state. This example works as you can see the keys written to the storage.
Please help as we need to keep this and other proporties of the grid (e.g. number of rows) in user personalisation.
<p-table #dataTable [value]="primengTableHelper.records" rows="{{primengTableHelper.defaultRecordsCountPerPage}}" [paginator]="false" [columns]="cols" [lazy]="true" [scrollable]="false" ScrollWidth="100%" [responsive]="primengTableHelper.isResponsive" [resizableColumns]="false" columnResizeMode="fit" stateStorage="local" stateKey="datatable-local">
This is the code for maintaining local storage for a primeng table. The instructions are followed as per the documentation provided by primeNG (https://www.primefaces.org/primeng/#/table/state). But the state is not saved as expected. Can anyone mention why the state is not stored as expected. It gets reset when routed back or reset.
Any help appreciated
Team
As the ODATA team have released an updated package for dotnet core 3.1 https://www.nuget.org/packages/Microsoft.AspNetCore.OData/ I wondered if you had plans to release an updated ABP package soon.