onix commented on issue #7855: URL: https://github.com/apache/apisix/issues/7855#issuecomment-1302090119
Faced the same error, going deeper into their tests found the proper way is to authorize with `/apisix/admin/user/login` call and then use the returned token in `Authorization` header: 1) https://github.com/apache/apisix-dashboard/blob/3b2c371fd996d941f72c57184dcf452e69b72736/api/test/e2e/base/base.go#L49 2) https://github.com/apache/apisix-dashboard/blob/3b2c371fd996d941f72c57184dcf452e69b72736/api/test/e2e/migrate/migrate_test.go#L149 Either it is a bug when `X-API-KEY` header is ignored for `/apisix/admin/migrate/export` call or lack of documentation https://apisix.apache.org/docs/dashboard/2.10.1/api/api/#apisixadminmigrateexport Also check the json, in my case it exported non-valid one with excessive symbols at the end (this looks like a bug): <img width="55" alt="Screenshot 2022-11-03 at 15 07 39" src="https://user-images.githubusercontent.com/645583/199728522-57c7a9f5-45a2-4ca1-8395-27eeffffab11.png"> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
