Open kevin-induro opened 2 years ago
This perhaps could be related to the token. On a page reload, I'm using a different token. Is this not a bug and perhaps a rate limiting? If so, what are the parameters behind that?
Hello @kevin-induro! Apologies for not reaching out sooner.
Just to help us figure this one out faster, if you could help with a little more information:
What version of @flatfile/angular are you using? Do you have a sample code / setup of how you're firing up the adapter so we can try to reproduce this better locally?
Thanks so much 🙏
@MarkPieszak I've been dealing with some family issues so I have not been able to get back to this. I'll try to get some code up soon. The version is the latest: 3.1.1
In the mean time, if I could call attention to https://github.com/FlatFilers/angular-adapter/issues/21 and it's PR.
@MarkPieszak This is easily reproduced with your sample project.
AppComponent
to FlatfileComponent
AppComponent
with just a router-outlet
TestComponent
, with the sole purpose of having something to route to.
const routes: Routes = [
{
path: '',
component: FlatfileComponent,
},
{
path: 'test',
component: TestComponent,
},
];
@NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule], }) export class AppRoutingModule {}
5. Add a `routerLink` on the `FlatfileComponent` to go to `test`
6. Hook the module appropriately given the above changes
7. Run, click the link, check console for error.
When I upload the file and complete it, a simple log in the onComplete function shows. However, when I then press the button again and go through the steps as normal, the log in the onCompelte function no longer fires. Upon refreshing the page, the process resets and I can do a single submission again before it stops firing.
In both cases, it appears the uploaded file still shows as Completed in the Flatfile Imports list.
I noticed that the only two calls to the Flatfile API after clicking the submission button were
SubmitBatch
andgetFinalDatabaseView
. However, on the second submission, onlySubmitBatch
is shown as being called.