Closed Adam-Kuhn20 closed 2 years ago
I managed to get around that error by updating the id
in the typewriter.yml
file.
Previously it was rs_XXX
which is the resourceSchemaId
, but now it seems to require the actual id
of the tracking plan which is tp_XXX
. You can get it by calling GET https://api.segmentapis.com/tracking-plans
with your token, or inspecting the Network in the Segment app.
So now I don't get the error anymore, but it gets stuck on the Loading tracking plans... ⡿
step.
This is also an issue that I'm running into, the id of the tracking plan is correct, there's just nothing being generated.
I'm getting the same errors. Here is some more information:
typewriter init
You get this output
? Save these settings? Yes
TypeError: Cannot read property 'method' of undefined
error Command failed with exit code 1.
You get these files:
tp_
)typewriter init
You get this output
? Save these settings? Yes
✨ Done in 101.02s.
You get these files
typewriter
You get the following output
Loading tracking plans... !
Error: Unable to fetch Tracking Plan from local cache or API
error Command failed with exit code 1.
You get the following files
If I downgrade to 7.x, everything works correctly.
Thanks for the detailed report, we're checking this.
Could anyone with this issue share the output when running the command with the --debug
flag?
@oscb
It seems to be loading each and every rule one at a time, as seen here, and it's taking a long time, but it succeeds eventually.
Then it fails with this error API request failed. Using local copy of undefined instead
which seems to be thrown here.
My guess is that something's failing in sanitizeTrackingPlan and gets caught by that try/catch
.
@andreiho I think your assumption is spot on. I can already see that we missed the page size from being bigger than 1 for starters. Doing some tests right now
We are trying to update from Typewriter 7.4.1 to 8.0.3.
I'm trying to regenerate our analytics with the new
Public API Token
. After runningyarn typewriter init
, I'm able to go through the steps just fine with no issue. On completion though no client is created (docs)Additionally, when I run
yarn typewriter
oryarn typewriter build
, after doingyarn typewriter init
. I receive the following errorError: Unable to fetch Tracking Plan from local cache or API
.I'm not sure why I get this error, because when I do
yarn typewriter init
I'm able to see all of the tracking plans and select the one I want.